Answers for "Error: Class 'App\Http\Controllers\Http' not found in file /var/www/html/apiEkselens/app/Http/Controllers/OrderController.php on line 339"

PHP
0

Class 'App\Http\Controllers\File' not found

// in laravel append the following at the top of controller
use File;
Posted by: Guest on November-01-2020
0

Class 'App\Http\Controllers\Response' not found

use Response;
Or use full namespace:

return \Response::json(...);
Or just use helper:

return response()->json(...);
Posted by: Guest on June-08-2020

Code answers related to "Error: Class 'App\Http\Controllers\Http' not found in file /var/www/html/apiEkselens/app/Http/Controllers/OrderController.php on line 339"

Browse Popular Code Answers by Language