SyntaxFix
Write A Post
Hire A Developer
Questions
$postbody=''; // Check for presence of a body in the request if (count($request->json()->all())) { $postbody = $request->json()->all(); }
This is how it's done in laravel 5.2 now.