Reputation: 354
I am working on a project that has some part of it in core php and other part is in laravel . So what I want there is any I can set variables or constant and can get those constant in both environment core php and laravel and both are on same server.
Upvotes: 1
Views: 95
Reputation: 302
You can create .php
in directory and can access it in you project. Your file will be like this <?php return ['a' => 'abc']; ?>
. Include this files and access all constants.
Upvotes: 1