How can you reduce memory usage in Laravel 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']);