“Laravel sprawdzaj datę” Kod odpowiedzi

Walidacja Datetime w Laravel

  return [
        'deadline' => 'required|date_format:Y-m-d H:i:s|after_or_equal:today',
    ];
Basel Rabia

Sprawdź, czy rok Laravel

'year' => 'required|digits:4|integer|min:1900|max:'.(date('Y')+1),
Concerned Caribou

Data Format walidacji Laravel

 $request->validate([
        'start_date' => 'date_format:d/m/Y',
        'end_date' => 'date_format:d/m/Y'
    ]);
Grumpy Grasshopper

Walidacja daty laravela

'dob' => 'required|date_format:Y-m-d|after_or_equal:1920-01-01'
Almabek

Sprawdź czas w Laravel

public function store(Illuminate\Http\Request $request)
{
    $this->validate($request, [
        'time_start' => 'date_format:H:i',
        'time_end' => 'date_format:H:i|after:time_start',
    ]);

    // do other stuff
}
Basel Rabia

Laravel sprawdzaj datę

 'day'            =>  'required|date',
MrDracoula

Odpowiedzi podobne do “Laravel sprawdzaj datę”

Pytania podobne do “Laravel sprawdzaj datę”

Więcej pokrewnych odpowiedzi na “Laravel sprawdzaj datę” w PHP

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu