You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
679 B

7 years ago
<?php
namespace App\Providers;
use Illuminate\Support\ServiceProvider;
class AppServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
7 years ago
if(!file_exists(database_path(env('DB_DATABASE')))) {
// first time setup
//die("No Database");
touch(database_path(env('DB_DATABASE')));
\Artisan::call('migrate', array('--path' => 'app/migrations', '--force' => true));
}
7 years ago
}
/**
* Register any application services.
*
* @return void
*/
public function register()
{
//
}
}