added settings

This commit is contained in:
KodeStar
2018-02-04 20:50:59 +00:00
parent afe78c4e06
commit d21138529f
19 changed files with 446 additions and 13 deletions

View File

@@ -17,7 +17,7 @@ class AppServiceProvider extends ServiceProvider
if(!file_exists(database_path(env('DB_DATABASE')))) {
// first time setup
touch(database_path(env('DB_DATABASE')));
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true));
Artisan::call('migrate', array('--path' => 'database/migrations', '--force' => true, '--seed' => true));
Artisan::call('storage:link');
//Cache
//Artisan::call('config:cache');
@@ -32,6 +32,8 @@ class AppServiceProvider extends ServiceProvider
*/
public function register()
{
//
$this->app->singleton('settings', function () {
return new Setting();
});
}
}