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