Пример #1
0
 public function store(CreateTagRequest $request, Tag $tag)
 {
     $this->authorize('blog.tags.create');
     $tag->fill($request->only(['name']));
     $tag->save();
     $message = "The tag {$tag->name} was created successfully !";
     Log::info($message, $tag->toArray());
     $this->notifySuccess($message, 'Tag created !');
     return redirect()->route('blog::foundation.tags.index');
 }