Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel check if collection has value

Auth::user()->ports->contains('port', $request->port);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #check #collection
ADD COMMENT
Topic
Name
8+9 =