Bruno Neves
Bruno Neves
Hi @supercoffee, use this ``` use Prettus\Validator\Contracts\ValidatorInterface; public function update(array $data, $id) { try { $this->validator->with($data)->passesOrFail(ValidatorInterface::RULE_UPDATE); return $this->repository->update($data,$id); } catch (ValidatorException $e){ return Response::json([ 'error' => true, 'message' => $e->getMessageBag()...
Look... ``` protected $rules = [ ValidatorInterface::RULE_CREATE => [ 'name' => 'required|unique:table,columnName', 'display_name' => 'required', 'description' => 'required' ], ValidatorInterface::RULE_UPDATE => [ 'name' => 'required|unique:table,columnName', 'display_name' => 'required', 'description' =>...
I have implemented in L5.2 problems and had no problems, you tried to install?
You are passing the parameter of the page Number for your API? following example: **html pagination** ` ` In controller $scope.pageChanged = function(newPage){ getResultsPage(newPage); }; ``` function getResultsPage(pageNumber){ City.query({page: pageNumber},...
I use so , with ngRoute ``` app.run(['$rootScope', 'AclService', function($rootScope, AclService) { AclService.resume(); $rootScope.acl = AclService; } ]); ``` throughout my app, template, I can use the acl calling dependent...