eloquent all get memoy code example
Example: eloquent all get memoy
<?php
use App\User;
# Wrong
$users = User::all();
# Right
$users = User::all(['id', 'name', 'email']);
<?php
use App\User;
# Wrong
$users = User::all();
# Right
$users = User::all(['id', 'name', 'email']);