public function run() { $faker = Faker::create(); foreach (range(1, 10) as $index) { Seri::create([]); } }
/** * Display a listing of settings * * @return Response */ public function index() { // $settings = Setting::all(); $settings = Setting::find('1'); $sequents = Sequent::all(); $seris = Seri::all(); return View::make('settings.index', compact('settings'))->with('sequents', $sequents)->with('seris', $seris)->withTitle('Settings'); }
/** * Remove the specified seri from storage. * * @param int $id * @return Response */ public function destroy($id) { Seri::destroy($id); return Redirect::route('admin.settings.index')->with('successMessage', 'Seri berhasil dihapus'); }