mercredi 3 février 2016

Route:list laravel 5 not changed

It's my first time deploying laravel on shared host.

I have a problem when adding some function on controller that already listed on routes.php. Everything is ok when I run it on local, but when it's on shared host, and I run php artisan route:list the list doesn't updated

Here's my controller :

public function getIndex(){
    return view('content.login');
}

public function postIsLogin(Request $data){
    ...
}

public function getLogout(){
    ...
}

And this is my routes.php

Route::controller('/login','LoginController');
Route::controller('/driver','DriverController');
Route::controller('/pushnotif','PushNotificationController');
Route::controller('/','DashboardController');

I add getLogout() function, but when I run php artisan route:list there's no route for getLogout() function.

I appreciate any help. Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire