eduardor2k/laravel-static-routes

Generate static routes from your route file

dev-main 2021-02-10 11:06 UTC

This package is auto-updated.

Last update: 2023-07-10 16:40:10 UTC


README

This laravel package will create an apache 2 .htaccess file in the public directory with all the laravel routes.

Remember this package is under development, check that everything is still working

Once installed you only need to run the following command:

php artisan laravel-static-routes:apache-2

Remember to create a 404.html file in the public directory or an apache 2 error will appear instead.

Composer

composer require eduardor2k/laravel-static-routes

Testing

composer test

To run the tests locally, run the following commands:

# install dependencies
docker run --rm --interactive --tty --volume $PWD:/app composer install
# run tests
docker run --rm --interactive --tty --volume $PWD:/app php /app/vendor/bin/phpunit /app/tests