Skip to content
Advertisement

Tag: laravel-5

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

Class ‘Memcached’ not found in laravel

I am trying to run simple code of cache using memcache in my laravel project. I have added CACHE_DRIVER=memcached in my .env file. I have created folder of memcache in C drive and added a file memcache.exe in that, and run in cmd by opening it as administrator. my code in route is: when I run this route, i get

Advertisement