File tree Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Expand file tree Collapse file tree 3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \MigrationGeneratorCommand ;
6
6
use Symfony \Component \Console \Attribute \AsCommand ;
7
7
8
+ use function Illuminate \Filesystem \join_paths ;
9
+
8
10
#[AsCommand(name: 'make:queue-failed-table ' )]
9
11
class FailedTableCommand extends MigrationGeneratorCommand
10
12
{
@@ -63,8 +65,8 @@ protected function migrationExists($table)
63
65
64
66
return count ($ this ->files ->glob (sprintf (
65
67
'{%s,%s} ' ,
66
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
67
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000002_create_jobs_table.php ' ),
68
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
69
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000002_create_jobs_table.php ' ),
68
70
))) !== 0 ;
69
71
}
70
72
}
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \MigrationGeneratorCommand ;
6
6
use Symfony \Component \Console \Attribute \AsCommand ;
7
7
8
+ use function Illuminate \Filesystem \join_paths ;
9
+
8
10
#[AsCommand(name: 'make:queue-table ' )]
9
11
class TableCommand extends MigrationGeneratorCommand
10
12
{
@@ -63,8 +65,8 @@ protected function migrationExists($table)
63
65
64
66
return count ($ this ->files ->glob (sprintf (
65
67
'{%s,%s} ' ,
66
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
67
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000002_create_jobs_table.php ' ),
68
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
69
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000002_create_jobs_table.php ' ),
68
70
))) !== 0 ;
69
71
}
70
72
}
Original file line number Diff line number Diff line change 5
5
use Illuminate \Console \MigrationGeneratorCommand ;
6
6
use Symfony \Component \Console \Attribute \AsCommand ;
7
7
8
+ use function Illuminate \Filesystem \join_paths ;
9
+
8
10
#[AsCommand(name: 'make:session-table ' )]
9
11
class SessionTableCommand extends MigrationGeneratorCommand
10
12
{
@@ -59,8 +61,8 @@ protected function migrationExists($table)
59
61
{
60
62
return count ($ this ->files ->glob (sprintf (
61
63
'{%s,%s} ' ,
62
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
63
- $ this -> laravel -> joinPaths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000000_create_users_table.php ' ),
64
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '*_*_*_*_create_ ' .$ table .'_table.php ' ),
65
+ join_paths ($ this ->laravel ->databasePath ('migrations ' ), '0001_01_01_000000_create_users_table.php ' ),
64
66
))) !== 0 ;
65
67
}
66
68
}
You can’t perform that action at this time.
0 commit comments