Answers for "can you use a variable in config() in laravel"

PHP
0

Laravel - How to create custom configuration variables and access

echo $recordPerPage = config('common.noOfRecords');
Output - 8
Posted by: Guest on May-07-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 "can you use a variable in config() in laravel"

Browse Popular Code Answers by Language