public function store(TagCreateRequest $request)
    {
        $tag = new Tag();
        $tag->fill($request->toArray())->save();
        $tag->save();

        Session::put('_new-tag', trans('canvas::messages.create_success', ['entity' => 'tag']));

        return redirect()->route('canvas.admin.tag.index');
    }
public function store(TagCreateRequest $request)
    {
        $tag = new Tag();
        $tag->fill($request->toArray())->save();
        $tag->save();

        Session::put('_new-tag', trans('canvas::messages.create_success', ['entity' => 'tag']));

        return redirect()->route('canvas.admin.tag.index');
    }
public function store ( TagCreateRequest $ request ) { $ tag = new Tag ( ) ; $ tag -> fill ( $ request -> toArray ( ) ) -> save ( ) ; $ tag -> save ( ) ; Session :: put ( '_new-tag' , trans ( 'canvas::messages.create_success' , [ 'entity' => 'tag' ] ) ) ; return redirect ( ) -> route ( 'canvas.admin.tag.index' ) ; }
Store the newly created tag in the database.

@param TagCreateRequest $request

@return \Illuminate\Http\RedirectResponse
Store the newly created tag in the database .