Add migrations and seeders support

This commit is contained in:
2021-01-14 14:16:52 +03:00
parent d12744296a
commit cb1f3a6bb5
15 changed files with 196 additions and 311 deletions

View File

@@ -2,6 +2,7 @@
namespace App\Providers;
use Closure;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
@@ -15,4 +16,15 @@ class AppServiceProvider extends ServiceProvider
{
//
}
public function boot()
{
$migrations_path = base_path() . '/../database/migrations';
$default_path = database_path('migrations');
$this->loadMigrationsFrom([
$default_path,
$migrations_path
]);
}
}