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 CortexAttributesSeeder extends Seeder
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
$abilities = [
['name' => 'list', 'title' => 'List attributes', 'entity_type' => 'attribute'],
['name' => 'import', 'title' => 'Import attributes', 'entity_type' => 'attribute'],
['name' => 'create', 'title' => 'Create attributes', 'entity_type' => 'attribute'],
['name' => 'update', 'title' => 'Update attributes', 'entity_type' => 'attribute'],
['name' => 'delete', 'title' => 'Delete attributes', 'entity_type' => 'attribute'],
['name' => 'audit', 'title' => 'Audit attributes', 'entity_type' => 'attribute'],
];
collect($abilities)->each(function (array $ability) {
app('cortex.auth.ability')->create($ability);
});
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.