over 5 years ago
We can load method in another controller without changing the url using Laravel.
If you are using Laravel 3 then we will define:
If We are using Larval 4.x then we will define:
$request = Request::create('/apples', 'GET', array());
In this case, you have to define a route for ApplesController, something like this
Route::get('/apples', 'ApplesController@getSomething'); // in routes.php
In the array() you can pass arguments if required.
By this way we will load method in another controller without changing the url using Laravel 4.x
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2021 FindNerd.com. All rights reserved.
Sign up using