Created
October 26, 2014 05:35
-
-
Save hellowin/f8f53ca2855d489fbc7e to your computer and use it in GitHub Desktop.
Call Artisan fromm Laravel routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Example for force install DB | |
| Route::get('/install', function() | |
| { | |
| echo '<br>init migrate'; | |
| Artisan::call('migrate'); | |
| echo 'done migrate'; | |
| echo '<br>init with tables seeder...'; | |
| Artisan::call('db:seed'); | |
| echo '<br>done with tables seeder'; | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment