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