I have a route i.e Route::get('abc/xyz', 'AbcController@xyz')
. How to write a cron command in cpanel to execute the controller function xyz()?
And the xyz()
function is accepting a request i.e xyz(Request $r){if($_REQUEST['step']=='1'){...}}
Cron job option & Command in cpanel :
05 16 * * * wget http://www.abc.in/laravelAppFolder/abc/xyz?step=1
How to write the above command correctly to run the controller function?