Answer the question
In order to leave comments, you need to log in
How to call Laravel project from php file?
For example, the Laravel project is located in the site.ru/polls folder, and there is an index.php file in the root of the site.
How can I call the laravel project from the polls folder from the index.php file?
Tried like this, but some confusion with routings:
And you need this in order to embed a laravel project (polls) into a wordpress page require_once('polls/public/index.php');
Answer the question
In order to leave comments, you need to log in
It's easier and more correct to set up Nginx or Apache, proxy or rewrite rule
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question