Beispiel #1
0
 public function run()
 {
     $feeder = Feeder::all()->first();
     $feederId = $feeder->id;
     DB::table('articles')->delete();
     Article::create(array('title' => 'Milano. La stella e le emozioni sono solo Innocenti Evasioni', 'url' => 'http://www.scattidigusto.it/2016/02/12/ristoranti-milano-innocenti-evasioni/', 'feeder_id' => $feederId));
 }
Beispiel #2
0
 public function index()
 {
     $feeders = Feeder::all();
     return view('admin.feeder.index', ['feeders' => $feeders]);
 }
Beispiel #3
0
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     return view('admin.feeder.index')->withFeeders(Feeder::all());
 }