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());
    }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1Sn8blt
via IFTTT

Aucun commentaire:

Enregistrer un commentaire