app/Http/Controllers/LayananController.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()
    {
        $layanan = new layanan();
        $data = $layanan->get();
        return view('layanan')->with('data', $data);
    }
public function index ( ) { $ layanan = new layanan ( ) ; $ data = $ layanan -> get ( ) ; return view ( 'layanan' ) -> with ( 'data' , $ data ) ; }
Display a listing of the resource.
Display a listing of the resource .