PHP code example of maulik / filament-auto-crud

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

    

maulik / filament-auto-crud example snippets


'ai' => [
    'enabled' => true,
    'model' => 'gpt-3.5-turbo',
],

'field_types' => [
    'string' => 'TextInput',
    'text' => 'Textarea',
    'integer' => 'TextInput::numeric',
    'boolean' => 'Toggle',
    // ...
],

'relationship_types' => [
    'belongsTo' => 'Select',
    'hasMany' => 'Repeater',
    'belongsToMany' => 'MultiSelect',
    // ...
],

'exclude' => [
    'migrations',
    'password_resets',
    'failed_jobs',
    // ...
],

'ai' => [
    'enabled' => true,
    'model' => 'gpt-3.5-turbo',
],
bash
php artisan vendor:publish --provider="Maulik\FilamentAutoCrud\FilamentAutoCrudServiceProvider"
bash
php artisan filament:generate-resource User
bash
php artisan filament:generate-resources