PHP code example of muzammal / syncmodelfillable

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

    

muzammal / syncmodelfillable example snippets


return [
    'excluded_columns' => ['created_at', 'updated_at', 'deleted_at'],
];

protected $fillable = ['name', 'slug', 'content'];
bash
    php artisan vendor:publish --provider="Muzammal\Syncmodelfillable\SyncModelFillableServiceProvider"
    
bash
php artisan sync:fillable Post
bash
php artisan sync:fillable Post