PHP code example of canvural / laravel-e2e-routes

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

    

canvural / laravel-e2e-routes example snippets




return [
    'prefix' => 'e2e',
    'name' => 'e2e-routes',
    'modelNamespace' => 'App\\',
];


[
    'attributes' => [ 'name' => 'John Doe' ]
]

[
    'times' => 3
]

[
    'states' => ['withAddress']
]

[
    'attributes' => [
        'name' => 'John Doe',
    ],
    'states' => ['withAddress'],
    'times' => 2
]
bash
php artisan vendor:publish --provider="Vural\E2ERoutes\E2ERoutesServiceProvider"