PHP code example of magedahmad / speed-generator

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

    

magedahmad / speed-generator example snippets


php artisan crud:create cat

php artisan crud:create cat --has-media

'cat' => [
        'arabic' => ['القطة', 'القطط', 'قطه', 'قطط'],

        'translatable' => [
            'active' => false,
            'translatable_fields' => [
            ],
        ],

        'database_fields' => [
            [
                'name' => 'name',
                'type' => 'string',
                'options' => [
                    'nullable' => ''
                ],
            ],
        ]
    ]
bash
php artisan vendor:publish --provider="MagedAhmad\SpeedGenerator\SpeedGeneratorServiceProvider"

php artisan crud:create cat

composer dump-autoload && php artisan migrate && php artisan db:seed --class=CatSeeder && php artisan l5-swagger:generate