Quantcast
Channel: User totymedli - Stack Overflow
Viewing all articles
Browse latest Browse all 60

Comment by totymedli on How can I get id from url with Request $request? (Laravel 5.3)

$
0
0
@rosscooper Exactly. If you defined the route like this: Route::apiresource('car', 'Api\CarController'), you have to use $request->route('car') or $request->route()->parameters['car']. You can get the request object with request(), $request which is coming from the controller method's parameter, or $this inside a request object.

Viewing all articles
Browse latest Browse all 60

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>