/** * Run the database seeds. * * @return void */ public function run() { // We want to delete the comments table if it exists before running the seed DB::table('tour_categories')->delete(); $tourCategories = array(['name' => 'City Tours'], ['name' => 'Summer'], ['name' => 'Winter'], ['name' => 'Oasis']); foreach ($tourCategories as $tourCategory) { TourCategory::create($tourCategory); } }
/** * Display the specified resource. * * @param int $id * @return Response */ public function show($id) { // $model = TourCategory::findOrFail($id); return $model; }