Exemplo n.º 1
0
 public function edit($feedId)
 {
     $data['feed'] = Feeds::find($feedId);
     $data['all_cats'] = FeedCategory::all();
     $data['editing'] = true;
     return view('admin.feeds.create', $data);
 }
Exemplo n.º 2
0
 public function index()
 {
     $data['categories'] = FeedCategory::all();
     $data['stories'] = Stories::unapproved();
     return view('admin.dashboard', $data);
 }