PHP code example of aee / route-generator

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

    

aee / route-generator example snippets




return [
        "title" => "User Management",
        "permission" => "user_access",
        "data-feather-icon" => "users",
        "routes" => [
            [
                "title" => "Users",
                "route" => url("/user-management/users"),
                "permission" => "user_access"
            ],
            [
                "title" => "Roles",
                "route" => url("/user-management/roles"),
                "permission" => "role_access"
            ],
            "Permissions" => url("/user-management/permissions")
        ],
  ];




return [
    "title" => "User Management",
    "permission" => "user_access",
    "data-feather-icon" => "users",
    "routes" => url("/user-management/permissions")
  ];
bash
$ php artisan larabase:generate-routes