PHP code example of felipereisdev / filament-crud-maker

1. Go to this page and download the library: Download felipereisdev/filament-crud-maker 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/ */

    

felipereisdev / filament-crud-maker example snippets


return [
    // Namespace where models will be created
    // All model file paths and import statements are derived from this value
    'model_namespace' => 'App\\Models',

    // Namespace where Filament Resources will be created
    // All resource file paths and import statements are derived from this value
    'resource_namespace' => 'App\\Filament\\Resources',

    // Run migrations automatically after generation (override with --no-migrate)
    'auto_migrate' => true,

    // Format generated code with Laravel Pint (override with --no-format)
    'auto_format' => true,
];
bash
php artisan vendor:publish --tag="filament-crud-maker-config"
bash
php artisan vendor:publish --tag="pint-config"
bash
php artisan make:filament-crud Product

php artisan make:filament-crud {model} [options]
bash
php artisan make:filament-crud --clean-resources