laravel how to create custom configuration variables and access

Solutions on MaxInterview for laravel how to create custom configuration variables and access by the best coders in the world

showing results for - "laravel how to create custom configuration variables and access"
Keely
30 Jul 2017
1echo $recordPerPage = config('common.noOfRecords');
2Output - 8
3
Odele
13 Jan 2016
1echo $applicationName = config('common.applicationName', 'Placement Question');
2Output - Placement Question
3
Bobby
25 Jan 2020
1<?php
2// config/common.php
3return [
4    'noOfRecords' => 8,
5];
6