Skip to content

Commit

Permalink
Merge pull request laravel#62 from eurides-eu/feature/change-organiza…
Browse files Browse the repository at this point in the history
…tion-budget-request

Update Organization Budget request
  • Loading branch information
dieterve authored May 28, 2018
2 parents c32fddc + d4091b3 commit 474a162
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
namespace App\Http\Requests\OrganizationBudgets;

use App\Http\Requests\FormRequest;
use App\Organizations\Rules\IsOrganizationBudget;

class CreateOrganizationBudgetRequest extends FormRequest
{
Expand Down Expand Up @@ -31,14 +30,6 @@ public function rules()
'autoApproveAmountLimit' => 'numeric',
'autoApproveMonthlyLimit' => 'numeric',
'autoApproveAfter' => 'string',
'defaultBudgetId' => [new IsOrganizationBudget($this->route('organizationId'))],
];
}

protected function validationData()
{
return array_merge($this->request->all(), [
'defaultBudgetId' => $this->route('organizationBudgetId'),
]);
}
}

0 comments on commit 474a162

Please sign in to comment.