jeudi 28 janvier 2016

Dispatching other routes

In other frameworks there is a dispatch method to return the result of other routes/actions for a route without changing URL. What is the correct way to do that in Laravel 5? At the moment I use the following code for that:

public function show() // in FooController
    {
        $controller = new UserController;
        return $controller ->show(User::first());
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire