# fluent-cart/1.6.4/app/Modules/StorageDrivers/Local/Local.php

FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler, version 1.6.4. 82 lines.

- Page: https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/StorageDrivers/Local/Local.php
- Raw: https://pluginprobe.com/plugins/fluent-cart/1.6.4/raw/app/Modules/StorageDrivers/Local/Local.php
- Modified: 2025-10-14T16:36:46+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/fluent-cart/1.6.4/code/app/Modules/StorageDrivers/Local/Local.php#L10-L20`.

```php
<?php

namespace FluentCart\App\Modules\StorageDrivers\Local;

use FluentCart\App\Services\FileSystem\Drivers\Local\LocalDriver;
use FluentCart\App\Vite;
use FluentCart\App\Modules\StorageDrivers\BaseStorageDriver;

class Local extends BaseStorageDriver
{
    /**
     * title, slug, brandColor
     */
    public function __construct()
    {
        parent::__construct(
            __('Local', 'fluent-cart'),
            'local',
            '#136196'
        );
    }

    public function registerHooks()
    {
        //
    }

    public function getLogo(): string
    {
        return Vite::getAssetUrl("images/storage-drivers/local.svg");
    }


    public function getDescription(): string
    {
        return esc_html__('Local allows to upload file in local file storage', 'fluent-cart');
    }

    public function isEnabled(): bool
    {
        return (new LocalSettings())->isActive();
    }

    public function getSettings()
    {
        return (new LocalSettings())->get();
    }

    public function fields(): array
    {
        return [
            'view' => [
                'title'           => __('Local Settings', 'fluent-cart'),
                'type'            => 'section',
                'disable_nesting' => true,
                'columns'         => [
                    'default' => 1,
                    'md'      => 1,
                    'lg'      => 1
                ],
                'schema'          => [
                    'is_active' => [
                        'value' => '',
                        'label' => __('Enable local driver', 'fluent-cart'),
                        'type'  => 'checkbox'
                    ]
                ]
            ]
        ];
    }

    public function getDriverClass(): string
    {
        return LocalDriver::class;
    }

    public function hiddenSettingKeys(): array
    {
       return [];
    }
}

```
