mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 11:00:39 +00:00
- user id cast to string
- include all migrations in migration process
This commit is contained in:
@@ -34,6 +34,7 @@ class User extends Authenticatable
|
|||||||
];
|
];
|
||||||
|
|
||||||
protected $casts = [
|
protected $casts = [
|
||||||
|
'id' => 'string',
|
||||||
'email_verified_at' => 'datetime',
|
'email_verified_at' => 'datetime',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@@ -29,5 +29,21 @@ class AppServiceProvider extends ServiceProvider
|
|||||||
|
|
||||||
// Set locale for carbon dates
|
// Set locale for carbon dates
|
||||||
setlocale(LC_TIME, $get_time_locale);
|
setlocale(LC_TIME, $get_time_locale);
|
||||||
|
|
||||||
|
// Get all migrations with all directories
|
||||||
|
$this->loadMigrationsFrom(
|
||||||
|
$this->get_migration_paths()
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
private function get_migration_paths(): array
|
||||||
|
{
|
||||||
|
$mainPath = database_path('migrations');
|
||||||
|
$directories = glob($mainPath . '/*', GLOB_ONLYDIR);
|
||||||
|
|
||||||
|
return array_merge([$mainPath], $directories);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user