Class 'App\Http\Controllers\Inertia' not found code example

Example 1: Class 'App\Http\Controllers\View' not found

use Illuminate\Support\Facades\View;

return \View::make('tickets.bus.index');

Example 2: Class 'App\Http\Controllers\Response' not found

use Response;
Or use full namespace:

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

return response()->json(...);

Example 3: Class 'App\Http\Controllers\File' not found

// in laravel append the following at the top of controller
use File;

Tags:

Misc Example