当前位置: 首页>>代码示例>>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;未经允许,请勿转载。