Monday, March 6, 2017

How to run Laravel's routes with shell script of linux?

I am using Laravel on centos 7,I have some routes that are used to initiate some data,like this:

Route::get('init-users', 'InitController@initUsers');
Route::get('init-roles', 'InitController@initRoles');
//...
//...
//...

I want to write a shell script file to run the routes above,what command should I use to do it?



via zwl1619

Advertisement