when i try to do this php artisan migrate --path=database/migrations/landlord --database=landlord je reçois cette erreur :
//
PS C:\laragon\www\client> php artisan migrate --path=database/migrations/landlord --database=landlord
Application In Production! *
Do you really wish to run this command? (yes/no) [no]:
y
Dropped all tables successfully.
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table ` (idint unsigned not null auto_increment primary key,migrationvarchar(191) not null,batch` int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = InnoDB)
at C:\laragon\www\commerce\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671
667| // If an exception occurs when attempting to run a query, we'll format the error
668| // message to include the bindings with SQL, which will make this exception a
669| // lot more helpful to the developer instead of just the database's errors.
670| catch (Exception $e) {
when i try to do this php artisan migrate --path=database/migrations/landlord --database=landlord je reçois cette erreur : // PS C:\laragon\www\client> php artisan migrate --path=database/migrations/landlord --database=landlord
Application In Production! *
Do you really wish to run this command? (yes/no) [no]:
Dropped all tables successfully.
Illuminate\Database\QueryException
SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name '' (SQL: create table
` (
idint unsigned not null auto_increment primary key,
migrationvarchar(191) not null,
batch` int not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci' engine = InnoDB)at C:\laragon\www\commerce\vendor\laravel\framework\src\Illuminate\Database\Connection.php:671 667| // If an exception occurs when attempting to run a query, we'll format the error 668| // message to include the bindings with SQL, which will make this exception a 669| // lot more helpful to the developer instead of just the database's errors. 670| catch (Exception $e) {
1 C:\laragon\www\client\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDO\Exception.php:18 Doctrine\DBAL\Driver\PDO\Exception::("SQLSTATE[42000]: Syntax error or access violation: 1103 Incorrect table name ''")
2 C:\laragon\www\client\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php:84 Doctrine\DBAL\Driver\PDO\Exception::new(Object(PDOException))
PS C:\laragon\www\client> php artisan migrate --path=database/migrations/landlord --database=landlord
Application In Production! *
Do you really wish to run this command? (yes/no) [no]:
Error
Class 'CreateTenantsTable' not found
at C:\laragon\www\client\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:453 449| public function resolve($file) 450| { 451| $class = Str::studly(implode('_', arrayslice(explode('', $file), 4))); 452|
1 C:\laragon\www\client\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:189 Illuminate\Database\Migrations\Migrator::resolve("2021_06_29_123938_create_tenants_table")
2 C:\laragon\www\client\vendor\laravel\framework\src\Illuminate\Database\Migrations\Migrator.php:165 Illuminate\Database\Migrations\Migrator::runUp("C:\laragon\www\client/database/migrations/landlord/2021_06_29_123938_create_tenants_table.php") PS C:\laragon\www\client>