Skip to content
Advertisement

Tag: laravel

Uncaught ReflectionException: Class log does not exist Laravel 5.2

I am currently trying to clone an existing project of mine from github. After clone I run composer install during the process I receive the following error: Uncaught ReflectionException: Class log does not exist I am running Laravel 5.2 on Centos 7. I have seen references to: Removing spaces within the .env file. Removing the vendor directory & re-installing Removing

Difference between EloquentModel::get() and all()

What is the difference between uses User::all() and User::get() on Eloquent? On Laravel API it describes only all() on EloquentModel.Maybe get() is described on EloquentBuilder. Answer User::all() and User::get() will do the exact same thing. all() is a static method on the EloquentModel. All it does is create a new query object and call get() on it. With all(), you

Change Faker Locale in Laravel 5.2

Is there a way to specify the Faker locale in the database/factories/ModelFactory.php file ? Here is my non functioning attempt at doing so >,< Thanks for reading! Answer Faker locale can be configured in the config/app.php configuration file. Just add the key faker_locale. e.g.: ‘faker_locale’ => ‘fr_FR’, See also my PR to document that previously undocumented feature: https://github.com/laravel/laravel/pull/4161

Advertisement