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()
    {
        $sts=Auth::user()->status;
        $id=Auth::user()->id;
        $buku=buku::all();
        $profile=User::where('users.id','=',$id)->first();
        return view('dashboard.dashboard',compact('sts','buku','profile'));
    }
public function index ( ) { $ sts = Auth :: user ( ) -> status ; $ id = Auth :: user ( ) -> id ; $ buku = buku :: all ( ) ; $ profile = User :: where ( 'users.id' , '=' , $ id ) -> first ( ) ; return view ( 'dashboard.dashboard' , compact ( 'sts' , 'buku' , 'profile' ) ) ; }
Show the application dashboard.
Show the application dashboard .
// return $sts;