You can install the package via composer:
composer require headerx/laravel-legacy-loader
You can publish the config file with:
php artisan vendor:publish --provider="HeaderX\LegacyLoader\LegacyLoaderServiceProvider" --tag="legacy-loader-config"
This is the contents of the published config file:
return [
/**
* Route prefix under which the php files are to be
* accessed. Additional routes are not needed,
* files will be accessible via thier path.
*/
'route_prefix' => env('LEGACY_ROUTE_PREFIX', 'legacy'),
/**
* Path to legacy php scripts
* relative to base_path()
*/
'file_path' => env('LEGACY_FILE_PATH', 'resources/legacy'),
/**
* If your legacy app has its own
* authentication you will need
* to publish config and add
* your own middleware.
*/
'middleware' => [
'web',
// 'auth',
],
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.