/** * Store a newly created resource in storage. * * @param CreateNewRolesRequest $request * @return \Illuminate\Http\Response */ public function store(CreateNewRolesRequest $request) { $this->role->firstOrCreate(['name' => $request->name]); session()->flash('message', trans('admin::admin.roles.addedNewRecord')); return back(); }