PHP code example of headerx / laravel-legacy-loader
1. Go to this page and download the library: Download headerx/laravel-legacy-loader library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
headerx / laravel-legacy-loader example snippets
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',
],