app/Http/Controllers/AntrianController.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()
    {
        $antrian = Antrian::where('status', 0)->orderBy('created_at', 'ASC')->first();
        return view('antrian.index', compact('antrian'));
    }
public function index ( ) { $ antrian = Antrian :: where ( 'status' , 0 ) -> orderBy ( 'created_at' , 'ASC' ) -> first ( ) ; return view ( 'antrian.index' , compact ( 'antrian' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// $pasien = Pasien::orderBy('created_at', 'DESC')->get();