how to decrease amount of query and models 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']);