public function listAll() { $announcements = Announcement::all(); $dataView = ['announcements' => $announcements]; return view('admin.announcement.list', $dataView); }
/** * Display a listing of the resource. * * @return Response */ public function index() { $announcements = Announcement::all(); return view('dashboard.home.index', ['announcement' => $announcements]); }
public function index() { return $this->collection(Announcement::all(), new AnnouncementTransformer()); }