app/Http/Controllers/StudentDetailController.php
/**
     * Show the form for creating a new resource.
     *
     * @return \Illuminate\Http\Response
     */
Show the form for creating a new resource.
@return \Illuminate\Http\Response
Show the form for creating a new resource . @return \ Illuminate \ Http \ Response
public function create(Request $request)
    {
        $data = Student::where('user_id',$request->user()->id)->pluck('nama','id');
        return view('pages.studentdetails.create')->with([
            'data' => $data
        ]);
    }
public function create ( Request $ request ) { $ data = Student :: where ( 'user_id' , $ request -> user ( ) -> id ) -> pluck ( 'nama' , 'id' ) ; return view ( 'pages.studentdetails.create' ) -> with ( [ 'data' => $ data ] ) ; }
Show the form for creating a new resource.
Show the form for creating a new resource .