PHP code example of sdavis1902 / laravel-controller-routes

1. Go to this page and download the library: Download sdavis1902/laravel-controller-routes 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/ */

    

sdavis1902 / laravel-controller-routes example snippets

 php
'providers' => [
    ...
    sdavis1902\LaravelControllerRoutes\LaravelControllerRoutesServiceProvider::class,
],
 php
'aliases' => [
    ...
	'MoreRoute' => sdavis1902\LaravelControllerRoutes\Facades\MoreRoute::class,
],
 php
MoreRoute::controller('/test', 'TestController');
 php
class TestController extends Controller {
    public function getFrank(){
        return 'woo';
    }
}