I have two routes
'/test'
which return the memberProfile blade. It works fine. But the other one
'/memberProfile/{id}'
which sends the request to memberController from where it returns the memberProfile blade. But this time the blade could not load the master layouts stylesheets. Instead of searching the stylesheets in path
it search the css in a path like
. here is web.php
Route::get('/test', function () {
return view('members.memberProfile');
});
Route::get('/memberProfile/{id}','memberController@memberProfile');
and memberController class
public function memberProfile(Request $request){
$id = decrypt($request->id);
$Member = Member::find($id);
$Member->Research->all();
$MemberProject = Member::find($id);
$MemberProject->Project->all();
$MemberPublication = Member::find($id);
$MemberPublication->Publication->all();
return view('members.memberProfile',['members' => $Member , 'memberProject' => $MemberProject , 'memberPublication' => $MemberPublication]);
}
What is the problem
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2mBNjfx
via IFTTT
Aucun commentaire:
Enregistrer un commentaire