You can use (L3 only)
Controller::call('ApplesController@getSomething');
In L4
you can use
$request = Request::create('/apples', 'GET', array());
return Route::dispatch($request)->getContent();
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.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…