Skip to main content
PHP Blog

Back to all posts

How to Add Custom Ini_set In Laravel?

Published on
4 min read
How to Add Custom Ini_set In Laravel? image

Best PHP Configuration Tools to Buy in November 2025

1 PHP Team Development

PHP Team Development

BUY & SAVE
$38.99
PHP Team Development
2 iFixit Jimmy - Ultimate Electronics Prying & Opening Tool

iFixit Jimmy - Ultimate Electronics Prying & Opening Tool

  • FLEXIBLE STEEL BLADE REACHES TIGHT GAPS FOR EASY DISASSEMBLY.
  • ERGONOMIC DESIGN ENSURES PRECISE CONTROL FOR ALL REPAIR TASKS.
  • VERSATILE TOOL FOR TECH FIXES, HOME PROJECTS, AND DIY ENTHUSIASTS.
BUY & SAVE
$7.95
iFixit Jimmy - Ultimate Electronics Prying & Opening Tool
3 Lisle 59600 Deutsch Terminal Tool

Lisle 59600 Deutsch Terminal Tool

  • UNIVERSAL FIT FOR MAJOR TRUCK BRANDS: CATERPILLAR, KENWORTH, AND MORE.
  • DURABLE STAINLESS STEEL TUBES OUTLAST PLASTIC TOOLS FOR RELIABILITY.
  • THREE SIZES FOR VERSATILE USE ON VARIOUS DEUTSCH TERMINALS.
BUY & SAVE
$23.67
Lisle 59600 Deutsch Terminal Tool
4 Freenove ESP32-S3 ESP32 S3 CAM Board (16 MB Flash), Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial

Freenove ESP32-S3 ESP32 S3 CAM Board (16 MB Flash), Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial

  • POWERFUL DUAL-CORE PROCESSING: RUNS UP TO 240 MHZ FOR RAPID PERFORMANCE.

  • COMPREHENSIVE TUTORIALS INCLUDED: STEP-BY-STEP GUIDES FOR EASY PROJECT SETUP.

  • VERSATILE CODE OPTIONS: SUPPORTS MICROPYTHON AND C PROGRAMMING LANGUAGES.

BUY & SAVE
$21.95
Freenove ESP32-S3 ESP32 S3 CAM Board (16 MB Flash), Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial
5 Freenove ESP32-S3 ESP32 S3 CAM Board, Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial

Freenove ESP32-S3 ESP32 S3 CAM Board, Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial

  • POWERFUL DUAL-CORE PROCESSOR: 240 MHZ FOR SEAMLESS PERFORMANCE.
  • COMPREHENSIVE TUTORIAL: EASY PROJECTS FOR ALL SKILL LEVELS INCLUDED.
  • DUAL LANGUAGE SUPPORT: PROGRAM WITH MICROPYTHON OR C EFFORTLESSLY.
BUY & SAVE
$19.95
Freenove ESP32-S3 ESP32 S3 CAM Board, Dual-core 32-bit 240 MHz Microcontroller, Onboard Camera Wireless, Python C Code, Example Projects Tutorial
6 AURSINC 2025 Upgraded V1.5.2 MMDVM Hotspot Spot Radio Station WiFi Digital Voice Modem Work Contained with Raspberry Pi Zero 2W, Supports C4FM YSF POCSAG NXDN DSTAR P25 DMR, Pi-Star/WPSD

AURSINC 2025 Upgraded V1.5.2 MMDVM Hotspot Spot Radio Station WiFi Digital Voice Modem Work Contained with Raspberry Pi Zero 2W, Supports C4FM YSF POCSAG NXDN DSTAR P25 DMR, Pi-Star/WPSD

  • FASTER PROCESSING: EXPERIENCE RAPID PERFORMANCE WITH RASPBERRY PI ZERO 2W.

  • QUICK INSTALLATION: PRELOADED PI-STAR MAKES SETUP A BREEZE!

  • VERSATILE CHARGING: CHARGE EASILY VIA USB OR USE IN YOUR VEHICLE.

BUY & SAVE
$109.99
AURSINC 2025 Upgraded V1.5.2 MMDVM Hotspot Spot Radio Station WiFi Digital Voice Modem Work Contained with Raspberry Pi Zero 2W, Supports C4FM YSF POCSAG NXDN DSTAR P25 DMR, Pi-Star/WPSD
7 TERRAMASTER F6-424 NAS Storage 6Bay - N95 Quad-Core CPU, 8GB DDR5 RAM, Dual 2.5GbE Ports, Network Attached Storage with High Performance (Diskless)

TERRAMASTER F6-424 NAS Storage 6Bay - N95 Quad-Core CPU, 8GB DDR5 RAM, Dual 2.5GbE Ports, Network Attached Storage with High Performance (Diskless)

  • TURBOCHARGED PERFORMANCE: ACHIEVE 140% FASTER APP LOAD & DATA RETRIEVAL!

  • EASY SSD SETUP: HASSLE-FREE, TOOL-FREE SSD INSTALLATION AND UPGRADES!

  • ROBUST BACKUP SUITE: PROTECT DATA WITH COMPREHENSIVE, ENTERPRISE-GRADE SOLUTIONS!

BUY & SAVE
$599.99
TERRAMASTER F6-424 NAS Storage 6Bay - N95 Quad-Core CPU, 8GB DDR5 RAM, Dual 2.5GbE Ports, Network Attached Storage with High Performance (Diskless)
+
ONE MORE?

To add custom ini_set in Laravel, you can make use of the ini_set() function in your Laravel application. You can add custom ini settings by defining them in your bootstrap/app.php file. Simply add the ini_set() function with the desired configuration key and value before the application is created. This will ensure that your custom ini settings are applied globally throughout your Laravel application. For example, you can add custom ini settings such as memory_limit or max_execution_time to optimize the performance of your Laravel application.

How to update ini_set values for specific Laravel environments?

To update ini_set values for specific Laravel environments, you can make use of the config directory and environment-specific configuration files in Laravel.

Here's how you can do it:

  1. Create a new configuration file for the specific environment within the config directory. For example, if you want to update ini_set values for the local environment, create a new file named local.php within the config directory.
  2. Within this new configuration file, define the ini_set values that you want to update for the specific environment. For example, you can define the values like this:

return [ 'ini_set_values' => [ 'memory_limit' => '256M', // Add more ini_set values here ] ];

  1. Next, you need to load this configuration file based on the specific environment. You can do this by updating the app.php configuration file within the config directory. Update the app.php file to load the environment-specific configuration file based on the current environment.

For example, update the app.php file to load the local.php configuration file when the APP_ENV environment variable is set to local: