Help us understand the problem. What is going on with this article?

Laravel チートシート コントローラ 編

More than 1 year has passed since last update.

artisan

php artisan make:controller HelloController

retrun

    return view('home', compact('data'));

    return redirect()->back();
    return redirect()->back()->withErrors($validator)->withInput();

    return redirect(route('list.detail', $id))->with('data', $data);
    return redirect(route('my.page'))->cookie('remember', $temp->id, 60 * 24 * 30);    
    return redirect(route('login'))->withCookie(Cookie::forget('remember'));

    return response()->json($rs);
    return response()->json(['status' =>'succuss', 'id' => $id]);
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away