app/Http/Controllers/LongsorController.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, $uuid)
    {
        $tahun = Tahun::whereUuid($uuid)->firstOrFail();
        $longsors = Longsor::where('id_tahun', $tahun->uuid)->get();
		return view('backend.longsor.index', compact('longsors','tahun'));
    }
public function index ( Request $ request , $ uuid ) { $ tahun = Tahun :: whereUuid ( $ uuid ) -> firstOrFail ( ) ; $ longsors = Longsor :: where ( 'id_tahun' , $ tahun -> uuid ) -> get ( ) ; return view ( 'backend.longsor.index' , compact ( 'longsors' , 'tahun' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
// dd($uuid); // dd(count($longsors));