Laravel version update

Laravel version update
This commit is contained in:
Manish Verma
2018-08-06 18:48:58 +05:30
parent d143048413
commit 126fbb0255
13678 changed files with 1031482 additions and 778530 deletions

15
routes/update.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
/**
* upgrade from 1.9.6 to 1.9.7.
*/
Route::get('1-9-7', function () {
if (\Schema::hasTable('ticket_type')) {
return redirect('/')->with(['success'=>'You are application is up to date']);
}
\Artisan::call('migrate', ['--force'=>true]);
\Artisan::call('db:seed', ['--class'=>'TickettypeSeeder', '--force'=>true]);
\Artisan::call('db:seed', ['--class'=>'CustomFormSeeder', '--force'=>true]);
\Artisan::call('view:clear');
return redirect('/')->with(['success'=>'Application has upgraded to 1.9.7 from 1.9.6']);
});