app/Http/Controllers/MahasiswaController.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(Request $request)
    {
        $data_mahasiswa = Mahasiswa::all();
        return view('mahasiswa.index', ['data_mahasiswa' => $data_mahasiswa]);
    }
public function index ( Request $ request ) { $ data_mahasiswa = Mahasiswa :: all ( ) ; return view ( 'mahasiswa.index' , [ 'data_mahasiswa' => $ data_mahasiswa ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
// if($request->has('cari')){ //     $data_mahasiswa = Mahasiswa::where('nama_depan', 'LIKE','%'.$request->cari.'%')->get(); // }else{ // }