<?php

return [

    /**
     * Provider.
     */
    'provider'  => 'shopping',

    /*
     * Package.
     */
    'package'   => 'address',

    /*
     * Modules.
     */
    'modules'   => ['address'],

    
    'address'       => [
        'model' => [
            'model'                 => \Shopping\Address\Models\Address::class,
            'table'                 => 'addresses',
            'presenter'             => \Shopping\Address\Repositories\Presenter\AddressPresenter::class,
            'hidden'                => [],
            'visible'               => [],
            'guarded'               => ['*'],
            'slugs'                 => ['slug' => 'name'],
            'dates'                 => ['deleted_at', 'createdat', 'updated_at'],
            'appends'               => [],
            'fillable'              => ['id',  'client_id',  'user_id',  'user_type',  'slug',  'name',  'phone',  'address_line1',  'address_line2',  'country_id',  'state_id',  'district_id',  'location_id',  'postal_code',  'default',  'created_at',  'updated_at',  'deleted_at'],
            'translatables'         => [],
            'upload_folder'         => 'address/address',
            'uploads'               => [
            /*
                    'images' => [
                        'count' => 10,
                        'type'  => 'image',
                    ],
                    'file' => [
                        'count' => 1,
                        'type'  => 'file',
                    ],
            */
            ],

            'casts'                 => [
            /*
                'images'    => 'array',
                'file'      => 'array',
            */
            ],

            'revision'              => [],
            'perPage'               => '20',
            'search'        => [
                'name'  => 'like',
                'status',
            ]
        ],

        'controller' => [
            'provider'  => 'Shopping',
            'package'   => 'Address',
            'module'    => 'Address',
        ],

    ],
];