increase memory limit in laravel code example Example: increase memory laravel controller ini_set('memory_limit', '64M');