Answers for "add custom variable to laravel config"

PHP
1

laravel set config

config()->set('config.path', $value);
Posted by: Guest on January-08-2021
0

Laravel - How to create custom configuration variables and access

<?php
// config/common.php
return [
    'noOfRecords' => 8,
];
Posted by: Guest on May-07-2021

Code answers related to "add custom variable to laravel config"

Browse Popular Code Answers by Language