當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Flash::success方法代碼示例

本文整理匯總了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();
 }
開發者ID:borovaka,項目名稱:events,代碼行數:7,代碼來源:EventsController.php

示例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');
 }
開發者ID:svuvis,項目名稱:forumsite,代碼行數:13,代碼來源:NewsController.php

示例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();
 }
開發者ID:davidvarney,項目名稱:tagmovement,代碼行數:7,代碼來源:AthletesController.php

示例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');
 }
開發者ID:svuvis,項目名稱:oshusite,代碼行數:13,代碼來源:EventsController.php

示例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');
 }
開發者ID:svuvis,項目名稱:oshusite,代碼行數:13,代碼來源:BoardMembersController.php

示例6: postDelete

 public function postDelete($id)
 {
     $message = $this->messages->get($id);
     $message->delete();
     \Flash::success('Wiadomość usunięta.');
     return \Redirect::to('admin/contact/');
 }
開發者ID:kkstudio,項目名稱:contact,代碼行數:7,代碼來源:ContactController.php

示例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();
 }
開發者ID:billwaddyjr,項目名稱:Larabook-1,代碼行數:13,代碼來源:FollowsControllers.php

示例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');
 }
開發者ID:svuvis,項目名稱:oshusite,代碼行數:13,代碼來源:ExamplesController.php

示例9: patchIndex

 public function patchIndex(UserFormRequest $request)
 {
     $user = Auth::user();
     $user->patch($request->all());
     \Flash::success('Account saved.');
     return redirect('account');
 }
開發者ID:kilrizzy,項目名稱:laraticket,代碼行數:7,代碼來源:AccountController.php

示例10: destroy

 public function destroy()
 {
     $msg = 'Logged out';
     Auth::logout();
     Flash::success("You have successfully logged out from the system.");
     return Redirect::to('login');
 }
開發者ID:shankargiri,項目名稱:Quantum-Vic-La-Trobe-L4,代碼行數:7,代碼來源:SessionController.php

示例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();
 }
開發者ID:za-web,項目名稱:octo-gallery,代碼行數:12,代碼來源:Photos.php

示例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();
 }
開發者ID:jimmitjoo,項目名稱:social-foundation,代碼行數:11,代碼來源:FollowersController.php

示例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');
 }
開發者ID:Josiel-Faleiros,項目名稱:blog-laravel,代碼行數:13,代碼來源:TagsController.php

示例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);
 }
開發者ID:Junyue,項目名稱:zidisha2,代碼行數:25,代碼來源:LenderInviteController.php

示例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');
 }
開發者ID:svuvis,項目名稱:oshusite,代碼行數:13,代碼來源:NotulenController.php


注:本文中的Flash::success方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。