public function store(CreateTagRequest $request) { return Tag::create($request->all()); }
/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(TagRequest $request) { Tag::create(['name' => $request['name']]); return Redirect::to('tag')->with('message', 'Tag Creado Correctamente'); }