Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function testapi() {
- $request = Request::create('/json/locations', 'GET', array('Hello' => 'World'));
- echo Route::dispatch($request)->getContent();
- }
- //Above request calls this function:
- public function getForUser() {
- echo var_dump(Request::get('Hello'));
- echo '<br>';
- return Response::json(array('message' => 'Index all locations based on User'), 200);
- }
- //The output is:
- //NULL
- //{"message":"Index all locations based on User"}
- //Why is it null?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement