for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
use Illuminate\Database\Seeder;
class CortexTestimonialsSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
$abilities = [
['name' => 'list', 'title' => 'List testimonials', 'entity_type' => 'testimonial'],
['name' => 'import', 'title' => 'Import testimonials', 'entity_type' => 'testimonial'],
['name' => 'create', 'title' => 'Create testimonials', 'entity_type' => 'testimonial'],
['name' => 'update', 'title' => 'Update testimonials', 'entity_type' => 'testimonial'],
['name' => 'delete', 'title' => 'Delete testimonials', 'entity_type' => 'testimonial'],
['name' => 'audit', 'title' => 'Audit testimonials', 'entity_type' => 'testimonial'],
];
collect($abilities)->each(function (array $ability) {
app('cortex.auth.ability')->create($ability);
});
}