over 5 years ago
In laravel 5.0 the way to define constants and use them through out the project. Following are the steps to accomplish it:-
Step 1st :- Creating a separate file under /config folder named as constants.php ( it can be any name) for storing all constants.
'CONTROLLER_PATH' => "App\Http\Controllers\\"
Step 2nd :- Define the file name in composer.json under "autoload" with "files" param for automatically loading the file.
Step 3rd :- Running the following command in command line.
$ composer dumpautoload
Step 4th :- Syntax for using the constants.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Terms of Service
| © copyright 2020 FindNerd.com. All rights reserved.
Sign up using