adswatantra
2 months ago

on db:: seed error

Posted 2 months ago by adswatantra

$ php artisan db:seed

Symfony\Component\Debug\Exception\FatalThrowableError : syntax error, unexpected ''' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';'

at C:\xampp\htdocs\laravel6.0\database\seeds\AdminUser.php:17 13| */ 14| public function run() 15| { 16| $role = Role::create([

17| 'name'=>'customer', 18| 'description'=>'Customer Role', 19| ]); 20| 21| $role = Role::create([

Exception trace:

1 Composer\Autoload\includeFile("C:\xampp\htdocs\laravel6.0\vendor\composer/../../database/seeds/AdminUser.php") C:\xampp\htdocs\laravel6.0\vendor\composer\ClassLoader.php:322

2 Composer\Autoload\ClassLoader::loadClass("AdminUser") [internal]:0

Please use the argument -v to see more details.

Please sign in or create an account to participate in this conversation.