Answers for "laravel check if collection is filled"

PHP
1

laravel collection isEmpty

collect([])->isEmpty();

// true
Posted by: Guest on July-24-2021
0

laravel check if collection has value

Auth::user()->ports->contains('port', $request->port);
Posted by: Guest on October-14-2020

Code answers related to "laravel check if collection is filled"

Browse Popular Code Answers by Language