本文整理汇总了PHP中Flash::success方法的典型用法代码示例。如果您正苦于以下问题:PHP Flash::success方法的具体用法?PHP Flash::success怎么用?PHP Flash::success使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Flash
的用法示例。
在下文中一共展示了Flash::success方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: destroy
public function destroy($id)
{
$event = Event::findOrFail($id);
$event->delete();
\Flash::success('Event ' . $event->event_name . ' deleted!');
return Redirect::back();
}
示例2: destroy
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
$news = News::findOrFail($id);
$news->delete();
\Flash::success('Nieuwsartikel verwijderd');
return redirect('admin/news');
}
示例3: store
public function store(Request $request)
{
$data = $request->all();
$athlete = Athlete::create($data);
\Flash::success("Athlete/Name Tag ID: " . $athlete->id);
return redirect()->back();
}
示例4: destroy
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
$event = Event::findOrFail($id);
$event->delete();
\Flash::success('Agenda evenement verwijderd');
return redirect('admin/events');
}
示例5: destroy
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return Response
*/
public function destroy($id)
{
$member = BoardMember::findOrFail($id);
$member->delete();
\Flash::success('Bestuurslid verwijderd');
return redirect('admin/board_members');
}
示例6: postDelete
public function postDelete($id)
{
$message = $this->messages->get($id);
$message->delete();
\Flash::success('Wiadomość usunięta.');
return \Redirect::to('admin/contact/');
}
示例7: destroy
/**
* Unfollow a user
*
* @param $userIdToUnfollow
* @return Response
*/
public function destroy($userIdToUnfollow)
{
$input = array_add(Input::all(), 'userId', Auth::id());
$this->execute(UnfollowUserCommand::class, $input);
Flash::success("You have now unfollowed this user.");
return Redirect::back();
}
示例8: destroy
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$example = Example::findOrFail($id);
$example->delete();
\Flash::success('Voorbeeld verwijderd');
return redirect('admin/examples');
}
示例9: patchIndex
public function patchIndex(UserFormRequest $request)
{
$user = Auth::user();
$user->patch($request->all());
\Flash::success('Account saved.');
return redirect('account');
}
示例10: destroy
public function destroy()
{
$msg = 'Logged out';
Auth::logout();
Flash::success("You have successfully logged out from the system.");
return Redirect::to('login');
}
示例11: onDelete
/**
* Delete photo action
*
* @return void
*/
public function onDelete()
{
$photos = post("photos");
\Zaweb\Gallery\Models\Photos::whereIn('id', $photos)->delete();
\Flash::success('Notes Successfully deleted.');
return $this->listRefresh();
}
示例12: destroy
/**
* Remove the specified resource from storage.
*
*/
public function destroy($userIdToUnfollow)
{
$input = array_add(Input::get(), 'userId', Auth::id());
$this->execute(UnfollowUserCommand::class, $input);
Flash::success('Du har nu avföljt användaren.');
return Redirect::back();
}
示例13: store
/**
* Store a newly created resource in storage.
*
* @param Request $request
* @return Response
*/
public function store(Request $request)
{
$this->validate($request, ['name' => 'required']);
Tags::create($request->all());
\Flash::success('Tag created');
return redirect('/tags');
}
示例14: postInvite
public function postInvite()
{
$form = $this->inviteForm;
$form->handleRequest(Request::instance());
if ($form->isValid()) {
$data = $form->getData();
$emails = array_map('trim', explode(",", $data['emails']));
$subject = $data['subject'];
$lender = Auth::user()->getLender();
$custom_message = $data['note'];
$allInvites = InviteQuery::create()->filterByLender($lender)->select('email')->find();
$countInvites = 0;
foreach ($emails as $email) {
if (in_array($email, $allInvites->getData())) {
Flash::info(\Lang::get('comments.flash.already-invited', array('email' => $email)));
} else {
$countInvites += 1;
$this->lenderService->lenderInviteViaEmail($lender, $email, $subject, $custom_message);
}
}
Flash::success(\Lang::choice('comments.flash.invite-success', $countInvites, array('count' => $countInvites)));
return Redirect::route('lender:invite');
}
return Redirect::route('lender:invite')->withForm($form);
}
示例15: destroy
/**
* Remove the specified resource from storage.
*
* @param int $id
* @return \Illuminate\Http\Response
*/
public function destroy($id)
{
$notule = Notule::findOrFail($id);
$notule->delete();
\Flash::success('Notule verwijderd');
return redirect('admin/notulen');
}