------------------------------------------ return back()->with('status', 'You Must Attach File!'); {{session('status')}} /* can print error in form like this */ ------------------------------------------ ------------------------------------------ return view('page',['name' => 'namename']); ------------------------------------------ ------------------------------------------ return response()->json([ 'name' => 'name', 'surname' => 'surname' ]); ------------------------------------------ ------------------------------------------ return response()->download('download/photo.png'); ------------------------------------------ ------------------------------------------ return url()->full(); /*existing url*/ ------------------------------------------ ------------------------------------------ return url()->previous(); /*previous url*/ ------------------------------------------

laravel return all usage