Пример #1
0
 /**
  * Store a newly created resource in storage.
  *
  * @return Response
  */
 public function store(AdminWebCreateRequest $request)
 {
     $web = Web::create($request->all());
     if ($web) {
         notify()->flash('Web created correctly', 'success', ['timer' => 3000, 'text' => '']);
     } else {
         notify()->flash('There was a problem creating the web', 'error', ['timer' => 3000, 'text' => '']);
     }
     return redirect()->to("admin/web");
 }