本文整理汇总了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'));
}
示例2: saveProfile
public function saveProfile(Request $request)
{
$user = Auth::user();
$user->update($request->all());
Flash::success('Profil frissítve!');
return redirect()->to('profile');
}
示例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'));
}
示例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');
}
示例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'));
}
示例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');
}
示例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');
}
示例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);
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}
示例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();
}
示例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');
}