I need to install laravel in a subfolder having the following structure. Route:
http://dominio/subcarpeta/
So I have the following folder structure:
private_part_of_laravel
public_html
|__parte_publica_de_laravel
and configure the index.php that is in:
public_html
|__ parte_publica_de_laravel
|__ index.php
In the necessary lines:
require __DIR__.'/../../parte_privada_de_laravel/vendor/autoload.php';
$app = require_once __DIR__.'/../../parte_privada_de_laravel/bootstrap/app.php';
With this when when I make the request to:
GET http://dominio/parte_publica_de_laravel/
I am perfectly charged with the view of welcome.blade.php
that is set in web.php
My problem starts when I issue the command:
php artisan make:auth
since when I enter the route:
GET http://dominio/parte_publica_de_laravel/login
sends me the view of a 404 error:
Sorry, the page you are looking for could not be found.
the same thing also happens when I try to define a new route:
Route::get('/home', function(){
return view('welcome');
});
If I enter the route
http://dominio/parte_publica_de_laravel/home
It also sends error 404:
Sorry, the page you are looking for could not be found.