A flexible way of structuring your Laravel applications.
Create an entrypoint.php
file at the root of your application.
$entrypoint = new Anomalyce\LaravelEntrypoint\Entrypoint(__DIR__);
$entrypoint->loadConfigurationFrom('config');
$entrypoint->loadLocaleFrom('locale');
$entrypoint->loadRoutesFrom('routes');
$entrypoint->loadStorageFrom('storage');
$entrypoint->loadDatabaseFrom('storage/database');
$entrypoint->storeBootstrapCacheIn('storage/bootstrap');
$entrypoint->serveFrom('public');
return $entrypoint;
See stubs/http.stub
for reference.
See stubs/console.stub
for reference.