PHP code example of kakhura / laravel-galleriable

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

    

kakhura / laravel-galleriable example snippets


'providers' => [
    /*
     * Package Service Providers...
     */
    \Kakhura\Galleriable\GalleriableServiceProvider::class,
],

return [
    /**
     * Use soft deletes into models and database.
     */
    'use_soft_deletes' => true,
];

use Kakhura\Galleriable\Traits\Models\HasGallery;

class Post extends Model
{
    use HasGallery;
}

bash
php artisan vendor:publish --tag=kakhura-galleriable-config
bash
php artisan vendor:publish --tag=kakhura-galleriable-migrations