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)
    {
        $data = Student::all()->where('user_id',$request->user()->id);
        return view('home')->with([
            'data'=>$data
        ]);
    }
public function index ( Request $ request ) { $ data = Student :: all ( ) -> where ( 'user_id' , $ request -> user ( ) -> id ) ; return view ( 'home' ) -> with ( [ 'data' => $ data ] ) ; }
Show the application dashboard.
Show the application dashboard .
// dd($data);