laravel command memory limit code example
Example 1: composer memory limit
php -d memory_limit=512M /usr/local/bin/composer update
Example 2: limit laravel
$posts = Post::all()->limit(10)->get();
php -d memory_limit=512M /usr/local/bin/composer update
$posts = Post::all()->limit(10)->get();