I have a collection of records.
$pastSessions = Sessions::where('id', $id)->pluck('event_start_time');
This has 12 records.
I'm trying to check if a variable is equal to any of these records, but it's only checking the last one.
if($application->appointment == $pastSessions)
How do I check is it equal to any of the records.
This is all in my controller
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2N4QEU5
via IFTTT
Aucun commentaire:
Enregistrer un commentaire