PHP code example of julianstark999 / laravel-tests-generator

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

    

julianstark999 / laravel-tests-generator example snippets


return [
    'directories' => [
        'actions' => 'Actions',
        'commands' => 'Console\Commands', 
        'enums' => 'Enums', 
        'exceptions' => 'Exceptions', 
        'helper' => 'Helper', 
        'controllers' => 'Http\Controllers', 
        'middleware' => 'Http\Middleware', 
        'requests' => 'Http\Requests', 
        'resources' => 'Http\Resources', 
        'jobs' => 'Jobs', 
        'mail' => 'Mail', 
        'models' => 'Models', 
        'notifications' => 'Notifications', 
        'observers' => 'Observers', 
        'providers' => 'Providers', 
        'rules' => 'Rules', 
        'services' => 'Services', 
        'traits' => 'Traits', 
        'views' => 'View',
    ],
];
bash
php artisan vendor:publish --provider="JulianStark999\LaravelTestsGenerator\LaravelTestsGeneratorServiceProvider" --tag="laravel-tests-generator-config"
bash
php artisan tests-generator {--dir=*}

# example
php artisan tests-generator --dir=controllers