public function index() { $heads = Head::lists('name', 'id'); $notes = Note::latest('id')->paginate(20); $bizs = Busines::all(); $orgs = Organization::all(); $forumHeads = forumHead::all(); return view('admin.index', compact('notes', 'bizs', 'orgs', 'forumHeads', 'heads')); }
public function index() { $forumHeads = forumHead::all(); $latestTopic = Topic::latest('created_at')->take(5)->get(); return view('forum.index', compact('forumHeads', 'latestTopic')); }