I am following the Laracast\'s API tutorial and trying to create an ApiController that all the other controllers extend. ApiController is responsib
ApiController
Since it's a facade, add this:
use Response;
Or use full namespace:
return \Response::json(...);
Or just use helper:
return response()->json(...);