예제 #1
0
 /**
  * @param TagRepositoryInterface $repository
  * @param Tag                    $tag
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(TagRepositoryInterface $repository, Tag $tag)
 {
     $tagName = $tag->tag;
     $repository->destroy($tag);
     Session::flash('success', 'Tag "' . e($tagName) . '" was deleted.');
     Preferences::mark();
     return Redirect::to(route('tags.index'));
 }
예제 #2
0
 /**
  * @param TagRepositoryInterface $repository
  * @param Tag                    $tag
  *
  * @return \Illuminate\Http\RedirectResponse
  */
 public function destroy(TagRepositoryInterface $repository, Tag $tag)
 {
     $tagName = $tag->tag;
     $repository->destroy($tag);
     Session::flash('success', strval(trans('firefly.deleted_tag', ['tag' => e($tagName)])));
     Preferences::mark();
     return redirect(route('tags.index'));
 }