New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

yaroslawww/laravel-inertia-dashboard

Laravel inertia dashboard development kit for quicker MVP ot live projects.
6
Install
composer require yaroslawww/laravel-inertia-dashboard
Latest Version:1.0.0
PHP:^8.1
Laravel:9
License:MIT
Last Updated:Nov 24, 2022
Links: GitHub  ·  Packagist
Maintainer: yaroslawww

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

Related Packages

conedevelopment/root

Root is an admin package for Laravel applications.

14,037 37
mddev31/filament-dynamic-dashboard

Dynamic dashboard for Laravel Filament.

7,574 10
saucy/dashboard

This is my package dashboard

3,962 1
redot/core

Core package for Redot Dashboard that has all the packages and helpers for the d...

2,511 1
moonshine/moonshine

Laravel administration panel

314,775 1,305

Version History

Version Released PHP Laravel License
1.0.0 ^8.1 ^9.0 MIT