tomatophp / filament-ecommerce

Build your own ecommerce store with Filament & Splade
https://tomatophp.com/en/open-source/filament-ecommerce
MIT License
46 stars 9 forks source link

Publishable resources? #14

Closed magarrent closed 1 month ago

magarrent commented 1 month ago

Hey! First of all, great job with the package, really worth it

Is there a possibility to publish the filament resources? Most of the time, we need specific fields or to edit some of them. Any plans to do that?

Just asking, thanks!! 🙏

linear[bot] commented 1 month ago

TOT-119 Publishable resources?

3x1io commented 1 month ago

you can publish the full package using Filament Plugins Manager

composer require tomatophp/filament-plugins

before use this feature please make sure that you are publish the config file of modules.php using this command

 php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider" --tag="config"

on the config file edit this 'enabled' => true,

<?php

return [
    /*
    |--------------------------------------------------------------------------
    | Scan Path
    |--------------------------------------------------------------------------
    |
    | Here you define which folder will be scanned. By default will scan vendor
    | directory. This is useful if you host the package in packagist website.
    |
    */
    'scan' => [
        'enabled' => true,
        'paths' => [
            base_path('vendor/*/*'),
        ],
    ],
]

all of this plugin can work as a module inside your app using our filament-plugins package and use this command

php artisan filament-plugins:publish

and type the name of the plugin you went to publish, if you don't know the plugin name you can use the list of all plugins using this command

php artisan module:list