app/Http/Controllers/VitalsController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $registration = Registration::with('patient')
            ->whereDate('created_at', Carbon::today())
            ->where('vitals',0)->limit(5)
            ->orderBy('created_at','asc')->get();
        return view('pages.vitals.index')
            ->with('registration',$registration);
    }
public function index ( ) { $ registration = Registration :: with ( 'patient' ) -> whereDate ( 'created_at' , Carbon :: today ( ) ) -> where ( 'vitals' , 0 ) -> limit ( 5 ) -> orderBy ( 'created_at' , 'asc' ) -> get ( ) ; return view ( 'pages.vitals.index' ) -> with ( 'registration' , $ registration ) ; }
Display a listing of the resource.
Display a listing of the resource .