Add ability to create recurrings that last forever
MODIFY
app/Http/Controllers/RecurringController.php
app/Http/Controllers/RecurringController.php
@@ -34,7 +34,7 @@ class RecurringController extends Controller {
public function store(Request $request) {
$request->validate([
'day' => 'required|integer|between:1,28',
- 'end' => 'required|date|date_format:Y-m-d',
+ 'end' => 'nullable|date|date_format:Y-m-d',
'tag' => 'nullable|exists:tags,id', // TODO CHECK IF TAG BELONGS TO USER
'description' => 'required|max:255',
'amount' => 'required|regex:/^\d*(\.\d{2})?$/'

MODIFY
resources/views/recurrings/create.blade.php
resources/views/recurrings/create.blade.php
<label>End</label>
<DatePicker name="end"></DatePicker>
@include('partials.validation_error', ['payload' => 'end'])
+ <input type="checkbox" name="end" value="" id="endForever" />
+ <label for="endForever">Forever</label>
</div>
</div>
<div class="row__column">

Add ability to create recurrings that last forever