public function store(Request $request) { \App\cms_type::create(['title' => $request['title'], 'description' => $request['description'], 'active' => '1', 'register_by' => Auth::User()->id, 'modify_by' => Auth::User()->id]); return redirect('admin/types'); }
public function store(Request $request) { \App\cms_type::create(['title' => $request['titulo'], 'description' => $request['descripcion'], 'active' => '1', 'register_by' => '1', 'register_date' => '2015/02/02', 'modify_by' => '1', 'modify_date' => '2015/03/03', 'register_by' => '1']); return view('Types.type'); }