A clean integration between Laravel and Expose.
This package provides an artisan expose
command to quickly share you site via Expose. It will also replace the APP_URL
environment variable with the URL that Expose is sharing your site through.
This package only supports Expose setups that use a custom domain and specific subdomains. Support for free-tier users will come soon.
Installation
You can install the package via composer:
composer require ryangjchandler/laravel-expose
You can publish the config file with:
php artisan vendor:publish --provider="RyanChandler\LaravelExpose\LaravelExposeServiceProvider" --tag="expose-config"
This is the contents of the published config file:
return [
'domain' => env('EXPOSE_DOMAIN'),
'subdomain' => env('EXPOSE_SUBDOMAIN'),
'server' => env('EXPOSE_SERVER'),
];
Usage
You should begin by adding the following variables to your .env
file:
EXPOSE_SUBDOMAIN=your-subdomain-here
EXPOSE_DOMAIN=your-domain-here.com
EXPOSE_SERVER=your-server-here # e.g. eu-1
Now you can run the artisan expose
command and your .env
file's APP_URL
variable will be replaced with the new URL that Expose is using.
When you hit Ctrl + C to terminate the command, the APP_URL
variable will be restored so that you can continue using your site locally.
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.