本文整理汇总了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();
}
示例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');
}
示例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');
}
示例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();
}
示例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();
}
示例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');
}
示例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();
}
示例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);
}
示例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);
}
示例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');
}
示例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);
}
示例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);
}
示例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);
}
示例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]) . " <b><a href='" . url('auth/email') . "'>" . trans('users.confirmEmailResend') . "</a></b>");
}
return $next($request);
}
示例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);
}