Exemple #1
0
 public function delete($id)
 {
     $Types = \App\cms_type::find($id);
     $Types->active = 0;
     $Types->save();
     Session::flash('message', 'Usuario Eliminado Correctamente');
     return redirect('admin/types')->with('message', 'store');
 }
Exemple #2
0
 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');
 }
 public function deletePicture($id)
 {
     $types = \App\cms_type::All();
     $Section = \App\cms_section::find($id);
     $Section->main_picture = "";
     $Section->save();
     Session::flash('message', 'Imagen Eliminada Correctamente');
     return view('sections.sectionform', ['Section' => $Section, 'types' => $types]);
 }