Level 1
return view('includes.header',compact('shown')));
1 like
Laravel - Load common header and footer to view
public function shownotification(Request $request)
{ $userId = Auth::id();
$shown = DB::table('notification')
->join('users', 'users.id', '=', 'notification.sender_id')
->where('notification.receiver_id', $userId)->first();
//echo "<pre>"; print_r($shownotif); die();
$value = Request::header('Content-Type');
return view(@include('includes/header'),['shown'=>$shown]));
}
Please or to participate in this conversation.