Looking to hire Laravel developers? Try LaraJobs

laravel-entrypoint maintained by anomalyce

Description
Customise your Laravel entrypoint structure.
Last update
2023/04/19 20:46 (dev-main)
License
Links
Downloads
143

Comments
comments powered by Disqus

Laravel Entrypoint

A flexible way of structuring your Laravel applications.

Defining the entrypoint

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;

Serving HTTP Applications

See stubs/http.stub for reference.

Serving Console Applications

See stubs/console.stub for reference.