/** * Show the form for creating a new resource. * * @return \Illuminate\Http\Response */ public function create() { $main = new Maintainence(); $Mval = Input::all(); $main->mnid = Input::get('mnid'); $main->Ecode = Input::get('selector'); $main->Name = Input::get('mnname'); $main->timer = Input::get('timer'); $main->save(); return Redirect::to('/'); }