LaravelPackages.net
Acme Inc.
Toggle sidebar
yaroslawww/laravel-inertia-dashboard

Laravel inertia dashboard development kit for quicker MVP ot live projects.

6
0
1.0.0
About yaroslawww/laravel-inertia-dashboard

yaroslawww/laravel-inertia-dashboard is a Laravel package for laravel inertia dashboard development kit for quicker mvp ot live projects.. It currently has 0 GitHub stars and 6 downloads on Packagist (latest version 1.0.0). Install it with composer require yaroslawww/laravel-inertia-dashboard. Discover more Laravel packages by yaroslawww or browse all Laravel packages to compare alternatives.

Last updated

Laravel think kit.

Packagist License Packagist Version Total Downloads Build Status Code Coverage Scrutinizer Code Quality

Laravel inertia dashboard development kit for quicker MVP ot live projects.

Installation

Install the package via composer:

composer require yaroslawww/laravel-inertia-dashboard

Optionally you can publish the config file with:

php artisan vendor:publish --provider="InertiaDashboardKit\ServiceProvider" --tag="config"

Usage

return Inertia::render('Admin/Issue/ShowPage', [
            'translations' => get_ads_translations('issue-page'),
            'indexData' => IndexData::make(
                $request,
                (new AdvAsset())->getMorphClass(),
                $lineItemIssue->assets()
            )
                                    ->perPage(9)
                                    ->useResource(
                                        AttachedAssetResource::class,
                                        [
                                            'actions' => function (AdvAsset $entity, $user, $request) use ($lineItemIssue) {
                                                $actions = [];
                                                if (
                                                    $user->can('update', $lineItemIssue)
                                                    && !$entity->pivot
                                                        ->isStatus(\App\Domain\Advertising\Enums\AssetStatus::APPROVED)
                                                ) {
                                                    $actions[] = (new DetachAction())
                                                        ->setDetachable($lineItemIssue, 'assets');
                                                }

                                                return $actions;
                                            },
                                        ]
                                    )
                                    ->bulkActions([])
                                    ->columns($columns)
                                    ->toResponseArray(),
        ]);

Credits

  • Think Studio

Star History Chart