PHP code example of phpone / laravel-annontation-route

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

    

phpone / laravel-annontation-route example snippets




return [
    'providers' => [
        //.......other serviceProvider
        \PhpOne\LaravelAnnotation\Providers\RouteAnnotationProviders::class,                  
    ]
];



Route::post("api/user/login","UserController@login");
Route::get("api/company/info","CompanyController@info");


shell
php artisan annotation-route:generate