Zedd Index
Zedd Index

Reputation: 354

set constants and get those constant in core php and laravel as well

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

Answers (1)

Jayant
Jayant

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

Related Questions