mercredi 24 mai 2017

laravel Invalid argument supplied for foreach()

I got this error

Invalid argument supplied for foreach() (View: /home/myproject/resources/views/client/route_data/data_table.blade.php) (View: /home/myproject/resources/views/client/route_data/data_table.blade.php)

when I try this path

/backend/route-data/11/edit

and this function belong to the path in laravel v5.1

public function edit($id)
    {
        $routeData = RouteData::find($id);
        if(null === $routeData) {
            Session::flash('error', 'Not found #' . $id);
            return Redirect::to('backend/route-data');
        }

        return view('backend.route_data.edit', compact('routeData'));
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire