app/Http/Requests/TenancyRequest.php
/**
     * @param TenancyRequest $request
     * @return bool
     * @throws ValidationException
     */
@param TenancyRequest $request
@return bool
@throws ValidationException
@param TenancyRequest $request @return bool @throws ValidationException
public function fallsIntoExistingTimePeriods(TenancyRequest $request)
    {
        if (Tenancy::allowsTenancyDatePeriod($request)) {
            throw ValidationException::withMessages([
                'period' => ['Please change date.'],
            ]);
        }
        return Tenancy::allowsTenancyDatePeriod($request);
    }
public function fallsIntoExistingTimePeriods ( TenancyRequest $ request ) { if ( Tenancy :: allowsTenancyDatePeriod ( $ request ) ) { throw ValidationException :: withMessages ( [ 'period' => [ 'Please change date.' ] , ] ) ; } return Tenancy :: allowsTenancyDatePeriod ( $ request ) ; }
@param TenancyRequest $request
 @return bool
 @throws ValidationException
@param TenancyRequest $request @return bool @throws ValidationException