Answers for "Laravel - How to create custom configuration variables and access"

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

echo $applicationName = config('common.applicationName', 'Placement Question');
Output - Placement Question
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 "Laravel - How to create custom configuration variables and access"

Browse Popular Code Answers by Language