This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
dai.mike16723
Recently, I was writing a query, It supposed to write where condition in an array
ReservationModel::whereStatus_idAndCreated_at(1,Carbon::now()->subMinutes(1)->toDateTimeString())->delete();
but it just didn't works
However, this works
ReservationModel::where('created_at','<',Carbon::now()->subMinutes(1)->toDateTimeString())->where('status_id', 1)->delete();
So I start thinking that is this is a old version that we are currently using?
Thanks
Mike
cleanse_
You can run php artisan --version
in your console. You should see Laravel Framework version 5.1.46 (LTS)
1-5 of 5