for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class DefaultSeeder extends DatabaseSeeder
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.
{
public function run()
$admin = Sentinel::registerAndActivate(array(
'email' => '[email protected]',
'password' => 'admin',
'first_name' => 'John',
'last_name' => 'Doe',
'status' => 1,
));
$adminRole = Sentinel::getRoleRepository()->createModel()->create([
'name' => 'Admin',
'slug' => 'admin',
'permissions' => array('admin' => 1),
]);
Base::getSettingsRepository()->createModel()->create([
'friendly_name' => 'SITE_NAME',
'name' => 'Website name',
'value' => 'John Doe\'s website',
'description' => 'Website name',
'friendly_name' => 'USER_REGISTRATION',
'name' => 'User registration status',
'value' => '1',
'description' => '/*
* 0 - Disabled
* 1 - Enabled and no activation
* 2 - User activation
* 3 - Admin activation
*/',
$admin->roles()->attach($adminRole);
}
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.