I have a Laravel seeder file in which I want to use a Utils
class that I created. The Utils
class is located at app/Classes/Utils.php
, but when I add use App\Classes\Utils as U;
at the top of my seeder file and try to call static methods in the Utils
class in the seeder, I get the following error:
Class 'App\Classes\Utils' not found
What am I doing wrong/missing? Thanks.
I am using Laravel 5.8.16 and PHP 7.3.2.