weiman99
1 month ago
257
4
Laravel

Database migrate error

Posted 1 month ago by weiman99

Database migrate errors, how to solve it?

 Symfony\Component\Debug\Exception\FatalThrowableError  : Class 'CreateRoleUserPivotTable' not found

  at C:\xampp\htdocs\a\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:448
    444|     public function resolve($file)
    445|     {
    446|         $class = Str::studly(implode('_', array_slice(explode('_', $file), 4)));
    447|
  > 448|         return new $class;
    449|     }
    450|
    451|     /**
    452|      * Get all of the migration files in a given path.

  Exception trace:

  1   Illuminate\Database\Migrations\Migrator::resolve("2020_01_17_000036_create_role_user_pivot_table")
      C:\xampp\htdocs\a\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:186

  2   Illuminate\Database\Migrations\Migrator::runUp("C:\xampp\htdocs\a\database\migrations/2020_01_17_000036_create_role_user_pivot_table.php")
      C:\xampp\htdocs\a\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:162

  Please use the argument -v to see more details.



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