Q: How to put condition that will check the validity of 30 days or more than 30 days I have a form with text fields Arrival and departure like:
Arrival : 07/18/2018
Departure: 08/18/2018 
If i want to stay for 30 days its says We have 2 nights minimum, please select at least 2 nights stay.
but here i want if i select 30 nights stay it let me save my dates.

My Controller code from where this condition is coming:
     // check minimun nights

    if($season!=null) {

        if ($season->minimum_nights != '' && ($number_of_days) < $season->minimum_nights) {

             $response = [
                'status' => 'error',
                'error' => 'Should be  ' . $season->minimum_nights . ' minimum nights in this season.',
            ];

            \Session::flash('error', 'We have ' . $season->minimum_nights . ' nights minimum, please select at least ' . $season->minimum_nights . ' nights stay.');

            return redirect()->back();
        }
    }

what i can do here that its let me add 30 or more than 30 nights stay:
Here your help will be highly appreciated!
    $from_date = $request->get('arrival');
    $to_date = $request->get('departure');

    $number_of_days = numberOfDays($from_date,  $to_date );

    $status = $property->isPropertyAvailable($from_date, $to_date);


A: Using Carbon to get the number of days, would be a cleaner way of doing this, imo.
        $from_date = Carbon::parse($request->get('arrival'));
        $to_date = Carbon::parse($request->get('departure'));

        $number_of_days = $from_date->diffInDays($to_date);

        if ($number_of_days < $season->minimum_nights) {
            $response = [
                'status' => 'error',
                'error' => 'Should be  ' . $season->minimum_nights . ' minimum nights in this season.',
            ];

            \Session::flash('error', 'We have ' . $season->minimum_nights . ' nights minimum, please select at least ' . $season->minimum_nights . ' nights stay.');

            return redirect()->back();
        }

        // Continue logic

