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

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

        return $this->sendResponse($permission, 'Permission saved successfully.');
    }
public function store(CreatePermissionRequest $request)
    {
        $input = $request->all();

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

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

@param CreatePermissionRequest $request
@return JsonResponse
Store a newly created Permission in storage .