public function edit($feedId)
 {
     $data['feed'] = Feeds::find($feedId);
     $data['all_cats'] = FeedCategory::all();
     $data['editing'] = true;
     return view('admin.feeds.create', $data);
 }
 public function run()
 {
     DB::table('feed_categories')->delete();
     FeedCategory::create(['name' => 'NFL']);
     FeedCategory::create(['name' => 'NHL']);
     FeedCategory::create(['name' => 'MLB']);
     FeedCategory::create(['name' => 'NBA']);
 }
 public function index()
 {
     $data['categories'] = FeedCategory::all();
     $data['stories'] = Stories::unapproved();
     return view('admin.dashboard', $data);
 }