/** * Store a newly created resource in storage. * * @param \Illuminate\Http\Request $request * @return \Illuminate\Http\Response */ public function store(CreateRoleRequest $request) { $result = $this->role->storeRole($request); if (!$result) { return redirect()->back()->with('status', 'create-error'); } return redirect()->route('admin.role.index')->with('status', 'create-success'); }