pictastudio/venditio-admin

This is my package venditio-admin

v0.1.14 2024-11-15 09:06 UTC

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require pictastudio/venditio-admin

Then initialize filament with the following command

php artisan filament:install --panels

You can install the package with:

php artisan venditio-admin:install

Optionally, you can publish the views using

php artisan vendor:publish --tag="venditio-admin-views"

Optionally, you can publish the translations using

php artisan vendor:publish --tag="venditio-admin-translations"

This is the contents of the published config file:

return [

    /*
    |--------------------------------------------------------------------------
    | Brand
    |--------------------------------------------------------------------------
    |
    | Specify the brand settings
    |
    */
    'brand' => [
        'name' => config('app.name'),
        'logo' => [
            'light' => null,
            'dark' => null,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Products
    |--------------------------------------------------------------------------
    |
    */
    'products' => [
        'variants' => [
            'enabled' => false,
        ],
    ],

    /*
    |--------------------------------------------------------------------------
    | Resources
    |--------------------------------------------------------------------------
    |
    | Specify the filament resources
    |
    */
    'resources' => [
        'brand' => [
            'enabled' => true,
            'class' => Resources\BrandResource::class,
        ],
        'order' => [
            'enabled' => true,
            'class' => Resources\OrderResource::class,
        ],
        'product' => [
            'enabled' => true,
            'class' => Resources\ProductResource::class,
            'relation_managers' => [
                'product_items' => [
                    'enabled' => true,
                    'class' => ProductItemsRelationManager::class,
                ],
            ],
        ],
        'product_category' => [
            'enabled' => true,
            'class' => Resources\ProductCategoryResource::class,
        ],
        'user' => [
            'enabled' => true,
            'class' => Resources\UserResource::class,
        ],
    ],
];

Auth

To manage auth and permissions this package uses PictaStudio\VenditioCore\Managers\Contracts\AuthManager from the core package. In order to authoriza access to the filament panel the instance of PictaStudio\VenditioCore\Managers\Contracts\AuthManager that is binded into the container must implement the canAccessAdminPanel method

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.