Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. //get the department
  2. $department = department::where('user_dep', '=', 1)->select('dep_id')->get();
  3. //but seems the department retrieved an array, which I dont want, I want only the content
  4. $notification = notification::where('department', '=', $department)->get();
  5.  
  6. $notification = notification::where('department', '=', 1)->get();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement