app/Http/Controllers/HomeController.php
/**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
Show the application dashboard.
@return \Illuminate\Contracts\Support\Renderable
Show the application dashboard . @return \ Illuminate \ Contracts \ Support \ Renderable
public function index(Request $request)
    {
        $request->session()->reflash('message','Post has been created');
        $request->session()->keep('message');
    }
public function index ( Request $ request ) { $ request -> session ( ) -> reflash ( 'message' , 'Post has been created' ) ; $ request -> session ( ) -> keep ( 'message' ) ; }
Show the application dashboard.
Show the application dashboard .
// $request->session()->put(['milad'=>'progrrammer']); // return view('home'); // $session->([])  // session() -> (['milad'=>'mmd']); // session(['milad' => 'programmer']); // return session('milad'); // $request->session()->forget('milad'); // $request->session()->flush(); // return $request->session()->all(); // $request->session()->flash('message','Post has been created'); // return $request->session()->get('message');