When I use a show($id) function called with a wild card route, the resulting view appends a directory on to all urls causing them to be invalid - here is my route:
route::get('setmeeting/{id}', 'SetmeetingController@show');
and here is the show function in my controller
$myvar = Mymodel::find($id);
return view('setmeeting', compact('myvar'));
and here is the view code (it does pass the data correctly)
<p>{{ $myvar->name }}</p>
The view has the correct data in it, but all of my JS tags and styles have 'setmeeting' appended in their urls and 404 error out.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community