mardi 19 janvier 2016

connect two controller output into one single route in laravel

In an laravel 5.1, how to combine two controller return output into one single route. In this how we can access both a two controller at a same time when we call a single route.

my route are like this:

Route::get('admin/users','FirstController@result_one');
Route::get('admin/users','SecondController@result_two');

my FirstController:

public function result_one()
{
return "result-1";
}

my SecondController:

public function result_two()
{
return "result-2";
}

In this case the output returns only SecondController..,



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire