This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Collection; | |
use Laravel\Scout\Searchable; | |
abstract class Cascade | |
{ | |
protected $models = [ | |
// Organization::class => ['users'] | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<template> | |
<input type="hidden" name="_token" :value="token"> | |
</template> | |
<script> | |
export default { | |
data() { | |
return { | |
token: null, | |
} | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Jobs; | |
use App\Product; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Support\Facades\Redis; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
Blade::directive('dusk', function ($expression) { | |
if (app()->environment('production')) { | |
return; | |
} | |
return "<?php echo sprintf('dusk=\"%s\"', $expression); ?>"; | |
}); |