W
W
wearts_ru2017-06-03 21:41:53
Laravel
wearts_ru, 2017-06-03 21:41:53

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

1 answer(s)
K
kostia_dev, 2017-06-03
@kostia_dev

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 question

Ask a Question

731 491 924 answers to any question