当前位置: 首页>>代码示例>>PHP>>正文


PHP Flash::success方法代码示例

本文整理汇总了PHP中Laracasts\Flash\Flash::success方法的典型用法代码示例。如果您正苦于以下问题:PHP Flash::success方法的具体用法?PHP Flash::success怎么用?PHP Flash::success使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Laracasts\Flash\Flash的用法示例。


在下文中一共展示了Flash::success方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: deleted

 /**
  * On deleting
  *
  * @param  string $message
  */
 public function deleted($message)
 {
     if (!$this->model->exists) {
         return $this->flash->success($message);
     }
     $this->error(trans('alert::errors.deleting'));
 }
开发者ID:routegroup,项目名称:laravel-alert,代码行数:12,代码来源:AlertNotifier.php

示例2: saveProfile

 public function saveProfile(Request $request)
 {
     $user = Auth::user();
     $user->update($request->all());
     Flash::success('Profil frissítve!');
     return redirect()->to('profile');
 }
开发者ID:enhive,项目名称:vev,代码行数:7,代码来源:UserController.php

示例3: update

 public function update(User $user, UserRequest $request)
 {
     $user->update($request->all());
     $user->roles()->sync($request->input('roleList'));
     Flash::success(trans('general.updated_msg'));
     return redirect(route('admin.users'));
 }
开发者ID:AlexYaroma,项目名称:mightyducks,代码行数:7,代码来源:UsersController.php

示例4: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(CategoryRequest $request)
 {
     $category = new Category($request->all());
     $category->save();
     Flash::success('La categoría se ha creado con éxito');
     return redirect()->route('admin.categories.index');
 }
开发者ID:eloyespeche,项目名称:BlogLaravelFinal,代码行数:13,代码来源:CategoriesController.php

示例5: patchSettings

 /**
  * Update the settings in storage.
  *
  * @param Setting $setting
  * @param SettingRequest $request
  * @return Response
  */
 public function patchSettings(Setting $setting, SettingRequest $request)
 {
     $data = $this->storeImage($request, 'logo');
     $setting->fill($data);
     $setting->save() == true ? Flash::success(trans('admin.update.success')) : Flash::error(trans('admin.update.fail'));
     return redirect(route('admin.setting.index'));
 }
开发者ID:abada,项目名称:laravel-5-simple-cms,代码行数:14,代码来源:SettingController.php

示例6: store

 public function store(HorariosRequest $request)
 {
     $horario = new Horario($request->all());
     $horario->save();
     Flash::success('Horario registrado con exito!');
     return redirect()->route('horarios.index');
 }
开发者ID:rikardote,项目名称:agenda,代码行数:7,代码来源:HorariosController.php

示例7: update

 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(FacultyRequest $request, $id)
 {
     $faculty = Faculty::findOrFail($id);
     $faculty->fill($request->all())->save();
     Flash::success("Faculty's details has been updated");
     return redirect('faculty');
 }
开发者ID:omoprodigi,项目名称:Keyword-Matching-Exam,代码行数:14,代码来源:FacultyController.php

示例8: store

 public function store(Request $request)
 {
     $instructor = new Instructor($request->all());
     $instructor->save();
     Flash::success('Instructor ' . $instructor->name . ' se ha registrado correctamente');
     return view('register.competitor.create')->with('id', $instructor->id);
 }
开发者ID:morinacho,项目名称:TournamentApp,代码行数:7,代码来源:InstructorController.php

示例9: store

 public function store(MedicosRequest $request)
 {
     $medico = new Medico($request->all());
     $medico->save();
     Flash::success('Medico registrado con exito!');
     return redirect()->route('citas.medicos.index');
 }
开发者ID:rikardote,项目名称:portalwork,代码行数:7,代码来源:MedicosController.php

示例10: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(Request $request)
 {
     $datos = new Inv_imag($request->all());
     $datos->save();
     Flash::success("Se ha registrado " . $datos->codpro . "de forma exitosa!");
     return redirect()->route('imagenes.index');
 }
开发者ID:jlobaton,项目名称:inventario,代码行数:13,代码来源:ImagenesController.php

示例11: store

 /**
  * Store a newly created resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @return \Illuminate\Http\Response
  */
 public function store(ContactoRequest $request)
 {
     $contacto = new Contacto($request->all());
     $contacto->save();
     Flash::success('El contacto ' . $contacto->name . ' ha sido creado con éxito!');
     return redirect()->route('admin.contactos.index');
 }
开发者ID:pablotebb,项目名称:Agenda,代码行数:13,代码来源:ContactosController.php

示例12: postUpdate

 public function postUpdate($id, Request $request)
 {
     $user = Auth::getUser();
     if ($user->email == $request->get('email')) {
         // user try to change own password
         $validatorRules = ['password' => 'confirmed|min:6'];
     } else {
         // user try another email
         $validatorRules = ['email' => 'required|email|max:255|unique:users', 'password' => 'confirmed|min:6'];
     }
     $this->validate($request, $validatorRules);
     $data = $request->all();
     // password crypt
     if (isset($data['password'])) {
         if (empty($data['password'])) {
             unset($data['password']);
         } else {
             $data['password'] = bcrypt($data['password']);
         }
     }
     $user = User::findOrFail($id);
     $user->update($data);
     Flash::success('Benutzerdaten sind aktualisiert.');
     return redirect()->action('Auth\\EditController@getEdit');
 }
开发者ID:alcodo,项目名称:alpaca,代码行数:25,代码来源:EditController.php

示例13: store

 public function store(EspecialidadesRequest $request)
 {
     $especialidad = new Especialidad($request->all());
     $especialidad->save();
     Flash::success('Especialidad registrada con exito!');
     return redirect()->route('especialidades.index');
 }
开发者ID:rikardote,项目名称:agenda,代码行数:7,代码来源:EspecialidadesController.php

示例14: store

 public function store(Request $request)
 {
     $input = $request->all();
     $this->dispatch(new StoreUserLessonResultCommand(Auth::id(), $input['lesson_id'], $input['quiz_result']));
     Flash::success('Results Saved');
     return redirect()->back();
 }
开发者ID:jclyons52,项目名称:mycourse-rocks,代码行数:7,代码来源:UserLessonResultController.php

示例15: store

 public function store(Request $request)
 {
     $competitor = new Competitor($request->all());
     $competitor->save();
     Flash::success('Competitor ' . $competitor->name . ' se ha registrado correctamente');
     return view('register.competitor.create');
 }
开发者ID:morinacho,项目名称:TournamentApp,代码行数:7,代码来源:CompetitorController.php


注:本文中的Laracasts\Flash\Flash::success方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。