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


PHP Flash::info方法代码示例

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


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

示例1: store

 public function store(PublishStatusRequest $request)
 {
     $this->dispatch(new PublishStatusCommand($request->all()));
     Flash::info('Your status has been updated');
     // Redirects back to the page that submitted the form
     return Redirect::back();
 }
开发者ID:rolandtacadena,项目名称:larabook-updated,代码行数:7,代码来源:StatusController.php

示例2: store

 /**
  * Store data imported from excel spreadsheet
  *
  * @param ExcelSpredsheetRequest $request
  * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
  */
 public function store(ExcelSpredsheetRequest $request)
 {
     $request->file('excel-file')->move('storage/imports', 'file.xlsx');
     $this->dispatch(new ImportFromSpreadsheet());
     Flash::info('Data imported');
     return redirect('admin/import');
 }
开发者ID:slawisha,项目名称:computer-shop,代码行数:13,代码来源:ImportController.php

示例3: update

 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $user = User::find($id);
     $user->fill($request->all());
     $user->save();
     Flash::info('El usuario ' . $user->name . ' ha sido editado correctamente.');
     return redirect()->route('admin.users.index');
 }
开发者ID:JoseDguez,项目名称:laravel-project,代码行数:15,代码来源:UsersController.php

示例4: store

 /**
  * Store a newly created resource in storage.
  *
  * @param CreateMessageRequest $request
  * @return Response
  */
 public function store(CreateMessageRequest $request)
 {
     $message = new Message();
     $message->fill($request->all());
     $message->save();
     Flash::info(trans('messages.message_sent_successfully'));
     return redirect()->back();
 }
开发者ID:jrafaelca,项目名称:infrea,代码行数:14,代码来源:MessagesController.php

示例5: store

 /**
  * Store a newly created resource in storage.
  *
  * @param CreateCabinetWireRequest|Request $request
  * @return Response
  */
 public function store(CreateCabinetWireRequest $request)
 {
     $cabinet = Cabinet::findOrFail($request->get('cabinet_id'));
     $cabinet->wires()->attach($request->get('wire_id'));
     $message = trans('messages.wire_successfully_associated');
     Flash::info($message);
     return redirect()->back();
 }
开发者ID:jrafaelca,项目名称:tracking_cabinets,代码行数:14,代码来源:CabinetWireController.php

示例6: update

 /**
  * Update the specified resource in storage.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function update(Request $request, $id)
 {
     $tag = Tag::find($id);
     $tag->fill($request->all());
     $tag->save();
     Flash::info('El tag ' . $tag->name . ' ha sido editado correctamente.');
     return redirect()->route('admin.tags.index');
 }
开发者ID:JoseDguez,项目名称:laravel-project,代码行数:15,代码来源:TagsController.php

示例7: store

 /**
  * Store a newly created resource in storage.
  *
  * @param WireWireTypeRequest $request
  * @return Response
  */
 public function store(WireWireTypeRequest $request)
 {
     $wire = Wire::findOrFail($request->get('wire_id'));
     $wire->types()->attach($request->get('wire_type_id'));
     $message = trans('messages.wire_type_successfully_associated');
     Flash::info($message);
     return redirect()->back();
 }
开发者ID:jrafaelca,项目名称:tracking_cabinets,代码行数:14,代码来源:WireWireTypeController.php

示例8: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param EditStripRequest|Request $request
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update($id, EditStripRequest $request)
 {
     $strip = Strip::findOrFail($id);
     $strip->fill($request->all());
     $strip->save();
     $message = trans('messages.edited_successfully_strip');
     Flash::info($message);
     return redirect()->route('admin.strips.edit', $strip);
 }
开发者ID:jrafaelca,项目名称:tracking_cabinets,代码行数:16,代码来源:StripsController.php

示例9: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param EditCategoryRequest $request
  * @return Response
  */
 public function update($id, EditCategoryRequest $request)
 {
     $category = Category::findOrFail($id);
     $category->fill($request->all());
     $category->save();
     $message = trans('messages.edited_category_successfully');
     Flash::info($message);
     return redirect()->route('admin.categories.edit', $category);
 }
开发者ID:jrafaelca,项目名称:infrea,代码行数:16,代码来源:CategoriesController.php

示例10: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param Request $request
  * @return Response
  */
 public function update($id, Request $request)
 {
     $wire_type = WireType::findOrFail($id);
     $wire_type->fill($request->all());
     $wire_type->save();
     $message = trans('messages.edited_successfully_wire_type');
     Flash::info($message);
     return redirect()->route('admin.wire_types.index');
 }
开发者ID:jrafaelca,项目名称:tracking_cabinets,代码行数:16,代码来源:WireTypesController.php

示例11: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param EditStripTypeRequest|Request $request
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update($id, EditStripTypeRequest $request)
 {
     $entity = StripType::findOrFail($id);
     $entity->fill($request->all());
     $entity->save();
     $message = trans('messages.edited_successfully_strip_type');
     Flash::info($message);
     return redirect()->route('admin.strip_types.edit', $entity);
 }
开发者ID:jrafaelca,项目名称:tracking_cabinets,代码行数:16,代码来源:StripTypesController.php

示例12: update

 /**
  * Update the specified resource in storage.
  *
  * @param  int $id
  * @param EditUserRequest $request
  * @return Response
  */
 public function update($id, EditUserRequest $request)
 {
     $user = User::findOrFail($id);
     $user->fill($request->all());
     $user->save();
     $message = trans('messages.edited_user_successfully');
     Flash::info($message);
     return redirect()->route('admin.users.edit', $user);
 }
开发者ID:jrafaelca,项目名称:infrea,代码行数:16,代码来源:UsersController.php

示例13: findMemberByName

 public function findMemberByName(Request $request)
 {
     $members = Member::where('first_name', 'like', '%' . $request->nombre . '%')->orWhere('last_name', 'like', '%' . $request->nombre . '%')->get();
     if (count($members) > 0) {
         Flash::info("¡Se han encontrado " . count($members) . " coincidencias!");
     } else {
         Flash::warning("¡No se han encontrado coincidencias!");
     }
     return view('member.index')->with('members', $members);
 }
开发者ID:StivenSerna,项目名称:gym,代码行数:10,代码来源:SearchsController.php

示例14: handle

 /**
  * Handle an incoming request.
  *
  * @param  \Illuminate\Http\Request  $request
  * @param  \Closure  $next
  * @return mixed
  */
 public function handle($request, Closure $next)
 {
     $user = Auth::user();
     $diff = Carbon::parse($user->created_at)->diffInDays();
     if ($diff > 30) {
         //user can't login and should confirm the email
         return redirect(url('auth/email'));
     } elseif (!$user->confirmed) {
         Flash::info(trans('users.pleaseConfirmEmail', ['remain' => 30 - $diff]) . "&ensp;<b><a href='" . url('auth/email') . "'>" . trans('users.confirmEmailResend') . "</a></b>");
     }
     return $next($request);
 }
开发者ID:emadmrz,项目名称:Hawk,代码行数:19,代码来源:EmailMiddleware.php

示例15: store

 /**
  * Store a newly created resource in storage.
  *
  * @param CreateHistoryRequest $request
  * @return Response
  */
 public function store(CreateHistoryRequest $request)
 {
     $history = new History();
     $history->fill($request->all());
     $history->user_id = Auth::id();
     $history->save();
     $application = Application::findOrFail($history->application->id);
     $application->status = $history->status;
     $application->save();
     $message = trans('messages.application_updated_successfully');
     Flash::info($message);
     return redirect()->route('admin.applications.show', $history->application);
 }
开发者ID:jrafaelca,项目名称:infrea,代码行数:19,代码来源:HistoriesController.php


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