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 CortexContactsSeeder 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()
Bouncer::allow('admin')->to('list', config('rinvex.contacts.models.contact'));
Bouncer::allow('admin')->to('create', config('rinvex.contacts.models.contact'));
Bouncer::allow('admin')->to('update', config('rinvex.contacts.models.contact'));
Bouncer::allow('admin')->to('delete', config('rinvex.contacts.models.contact'));
Bouncer::allow('admin')->to('audit', config('rinvex.contacts.models.contact'));
}
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.