Hello à tous,
J’espère que vous allez super bien !
Pour commencer, voici le dossier de base d’une application Laravel

Pour déployer une application web Laravel sur un hébergement mutualisé, vous pouvez suivre les étapes suivantes.
- Avec vos identifiants FTP fournis par votre hébergeur, connectez-vous en FTP (généralement vous serez dans le dossier (www ou htdocs) après connexion.
- Créer un repertoire : / sources le dossier (www, public_html ou htdocs)
- Copier tous les fichiers dans / sources SAUF le repertoire /public
- Entrez dans le repertoire /public puis copier tous son contenu dans (www, public_html ou htdocs)
- Vous allez modifier :
- Modifier le fichier index.php qui est présent /public_html/index.php comme suit :
<?php
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If The Application Is Under Maintenance
|--------------------------------------------------------------------------
|
| If the application is in maintenance / demo mode via the "down" command
| we will load this file so that any pre-rendered content can be shown
| instead of starting the framework, which could cause an exception.
|
*/
if (file_exists($maintenance = DIR.'/../storage/framework/maintenance.php')) {
require $maintenance;
}
/*
|--------------------------------------------------------------------------
| Register The Auto Loader
|--------------------------------------------------------------------------
|
| Composer provides a convenient, automatically generated class loader for
| this application. We just need to utilize it! We'll simply require it
| into the script here so we don't need to manually load our classes.
|
*/
// Ajouter /sources/
require DIR.'/sources/vendor/autoload.php';
/*
|--------------------------------------------------------------------------
| Run The Application
|--------------------------------------------------------------------------
|
| Once we have the application, we can handle the incoming request using
| the application's HTTP kernel. Then, we will send the response back
| to this client's browser, allowing them to enjoy our application.
|
*/
// Ajouter /sources/
$app = require_once DIR.'/sources/bootstrap/app.php';
$kernel = $app->make(Kernel::class);
$response = $kernel->handle(
$request = Request::capture()
)->send();
$kernel->terminate($request, $response);
Voila, n’hésitez pas à partager pour aider quelqu’un.