PHP code example of maartenstaa / laravel-41-route-caching

1. Go to this page and download the library: Download maartenstaa/laravel-41-route-caching 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/ */

    

maartenstaa / laravel-41-route-caching example snippets


return array(
	// ...

	'providers' => array(
		// ...

		'MaartenStaa\Routing\RoutingServiceProvider',

	),

);

Route::cache(__FILE__, function() {
	// Define your routes here.
});

Route::get('/', function () {
	return 'Hello, world!';
});