public function store(CreateRoleRequest $request)
    {
        $input = $request->all();

        $role = $this->repository->create($input);
        $role->load($request->getWith());

        return $this->sendResponse($role, 'Role saved successfully.');
    }
public function store(CreateRoleRequest $request)
    {
        $input = $request->all();

        $role = $this->repository->create($input);
        $role->load($request->getWith());

        return $this->sendResponse($role, 'Role saved successfully.');
    }
public function store ( CreateRoleRequest $ request ) { $ input = $ request -> all ( ) ; $ role = $ this -> repository -> create ( $ input ) ; $ role -> load ( $ request -> getWith ( ) ) ; return $ this -> sendResponse ( $ role , 'Role saved successfully.' ) ; }
Store a newly created Role in storage.

@param CreateRoleRequest $request
@return JsonResponse
Store a newly created Role in storage .