1. Home
  2. ›
  3. Artisan
  4. ›
  5. Count

Count method returns a number of records in the queried object.

#artisan#php
App\Users::count();
copy
Full Artisan cheatsheet