PHPackages                             lastdino/asset-guard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lastdino/asset-guard

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lastdino/asset-guard
====================

This is my package KanbanBoard

v0.4(1mo ago)0205MITPHPPHP ^8.0

Since Oct 1Pushed 1mo agoCompare

[ Source](https://github.com/lastdino/asset-guard)[ Packagist](https://packagist.org/packages/lastdino/asset-guard)[ Docs](https://github.com/lastdino/asset-guard)[ RSS](/packages/lastdino-asset-guard/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (8)Versions (18)Used By (0)

Asset Guard
===========

[](#asset-guard)

日本語 | English follows below

---

概要（日本語）
-------

[](#概要日本語)

Asset Guard は、設備資産の台帳管理・点検（定期/使用前）・保全計画・故障（インシデント）記録を Livewire v3 + Flux UI + Tailwind v4 で提供するモジュールです。Laravel 12 のモジュール構成で、設定/ルート/ビュー/言語/マイグレーションをパッケージから提供します。

主な機能:

- 資産（設備）台帳: コード、名称、シリアル、固定資産番号、設置場所、階層（親子）など
- 設置場所管理: ツリー構造（親子）
- 点検: チェックリスト（項目/合否/範囲/参考画像）と実施・履歴・添付
- 使用前点検・一括点検: 現場運用を意識した UI
- 保全計画: 時間/使用トリガ、リードタイム、担当者割り当て、発生スケジュール
- 故障（インシデント）: 発生・対応・完了、添付ダウンロード（署名付き URL）
- ダッシュボード: KPI、期限超過、最近の故障

技術スタック:

- Laravel 12, PHP 8.4
- Livewire v3-v4,Flux UI Free
- Tailwind CSS v4
- Spatie Media Library（添付）

---

インストール（モノレポ内）
-------------

[](#インストールモノレポ内)

このパッケージは `packages/lastdino/asset-guard` に配置されています。ルート `composer.json` に PSR-4 およびパッケージの path リポジトリ設定が済んでいる前提です。

1. Service Provider は自動登録（Laravel 12 auto-discovery）

- `Lastdino\AssetGuard\AssetGuardServiceProvider`

2. ルート/ビュー/翻訳/マイグレーションはパッケージから自動ロード

- 変更したい場合は publish を利用（下記）

3. 依存関係（抜粋）

- livewire/livewire: ^3-v4
- tailwindcss: ^4（ビルド必要）
- spatie/laravel-medialibrary

> フロントに変更を加えた後は `npm run dev` もしくは `npm run build` を実行してください。

---

Publish（任意）
-----------

[](#publish任意)

必要に応じて設定・ビュー・言語を publish できます。

- 設定: php artisan vendor:publish --tag=asset-guard-config --no-interaction
- ビュー: php artisan vendor:publish --tag=asset-guard-views --no-interaction
- 言語: php artisan vendor:publish --tag=asset-guard-lang --no-interaction

---

マイグレーション
--------

[](#マイグレーション)

マイグレーションは自動ロードされます。以下で適用してください。

php artisan migrate --no-interaction

テーブル例:

- asset\_guard\_locations, asset\_guard\_assets
- asset\_guard\_inspection\_checklists, asset\_guard\_inspection\_checklist\_items
- asset\_guard\_inspections, asset\_guard\_inspection\_item\_results, asset\_guard\_inspection\_user
- asset\_guard\_maintenance\_plans, asset\_guard\_maintenance\_occurrences
- asset\_guard\_incidents

---

ルートと URL
--------

[](#ルートと-url)

設定ファイル `config/asset-guard.php` で prefix と middleware を変更できます。既定値:

- prefix: `asset-guard`
- middleware: `['web']`

代表ページ（名前付きルート）:

- ダッシュボード: route('asset-guard.dashboard.index') → /asset-guard/dashboard
- 資産一覧: route('asset-guard.assets.index') → /asset-guard/assets
- 設置場所: route('asset-guard.locations.index') → /asset-guard/locations
- 資産タイプ: route('asset-guard.asset-types.index') → /asset-guard/asset-types
- 保全計画: route('asset-guard.maintenance-plans.index') → /asset-guard/maintenance-plans
- 故障一覧: route('asset-guard.incidents.index') → /asset-guard/incidents

メディア関連（署名付き）:

- 故障添付ダウンロード: route('asset-guard.incidents.download', $mediaId)
- 点検項目参考画像の表示: route('asset-guard.inspections.items.media', $mediaId)
- 点検結果添付ダウンロード: route('asset-guard.inspections.results.download', $mediaId)
- 一般メディア表示（署名付き・非認証）: route('asset-guard.media.show.signed', $mediaId)

> download および items.media/results.download は `auth` + `signed` ミドルウェアで保護されています。

---

Livewire コンポーネント（抜粋）
--------------------

[](#livewire-コンポーネント抜粋)

ServiceProvider にて登録済みです。Blade から呼び出す場合は下記エイリアスを使用できます。

- 'asset-guard.assets.index' → 資産一覧
- 'asset-guard.locations.index' → 設置場所
- 'asset-guard.asset-types.index' / 'asset-guard.asset-types.checklist-manager'
- 'asset-guard.dashboard.index' 他 KPI/テーブル系
- 'asset-guard.inspections.index' / '...performer' / '...batch-performer' / '...pre-use-performer' / '...show' / '...checklist-items-\*'
- 'asset-guard.maintenance-plans.index'
- 'asset-guard.incidents.index' / 'asset-guard.incidents.incident-panel'

---

設定
--

[](#設定)

config/asset-guard.php

return \[ 'routes' =&gt; \[ 'prefix' =&gt; 'asset-guard', 'middleware' =&gt; \['web'\], 'guards' =&gt; \['web'\], \], \];

- prefix を変更すると全ページの URL と名前付きルート接頭辞が変わります。
- middleware/guards をアプリ方針に合わせて調整してください。

---

UI と i18n
---------

[](#ui-と-i18n)

- Tailwind v4 を使用しています。v3 以前の @tailwind ではなく `@import "tailwindcss";` を使用します。
- Flux UI Free を利用。flux:button の variant は `primary|filled|danger|ghost|subtle` のみを使用してください。
- 翻訳は `lang/vendor/asset-guard` に publish 可能です。既定では `ja` をデフォルト、`en` をフォールバックで提供する前提です。

---

よくある操作
------

[](#よくある操作)

- ダッシュボードへの遷移: /asset-guard/dashboard
- 資産の登録・編集・設置場所の紐付け
- 点検チェックリストの作成 → 実施（使用前/定期）→ 添付の確認
- 保全計画の作成 → 予定（Occurrence）の確認
- 故障記録の登録 → 添付のダウンロード（署名付き）

---

テスト/開発のヒント
----------

[](#テスト開発のヒント)

- 変更を加えたら最小限のテストを実行: `php artisan test --filter=AssetGuard`（テストが存在する場合）
- フロント/UI 変更後は `npm run dev` か `npm run build` を実行
- コード整形は `vendor/bin/pint --dirty`

---

English
-------

[](#english)

### Overview

[](#overview)

Asset Guard is a Livewire v3 + Flux UI + Tailwind v4 module for asset registry, inspections (periodic/pre-use), maintenance planning, and incident records. Ships routes, views, translations, and migrations as a Laravel 12 package.

Key features:

- Asset register with parent/child, serial/fixed asset no, location
- Locations (hierarchical)
- Inspections with checklists, item ranges, reference media, results &amp; attachments
- Pre-use and batch inspections
- Maintenance plans (time/usage triggers, lead time, assignee)
- Incidents with signed downloads
- Dashboard (KPIs, overdue, incidents)

### Install (in monorepo)

[](#install-in-monorepo)

- Service provider is auto-discovered: `Lastdino\\AssetGuard\\AssetGuardServiceProvider`
- Routes/views/translations/migrations are auto-loaded. Use vendor:publish to customize.
- Run frontend build after UI changes: `npm run dev` or `npm run build`.

### Publish (optional)

[](#publish-optional)

- Config: `php artisan vendor:publish --tag=asset-guard-config --no-interaction`
- Views: `php artisan vendor:publish --tag=asset-guard-views --no-interaction`
- Lang: `php artisan vendor:publish --tag=asset-guard-lang --no-interaction`

### Migrate

[](#migrate)

`php artisan migrate --no-interaction`

Tables include assets, locations, checklists, inspections, maintenance plans/occurrences, incidents, and pivots.

### Routes &amp; URLs

[](#routes--urls)

Default config:

- prefix: `asset-guard`
- middleware: `web`

Pages:

- Dashboard: `/asset-guard/dashboard`
- Assets: `/asset-guard/assets`
- Locations: `/asset-guard/locations`
- Asset Types: `/asset-guard/asset-types`
- Maintenance Plans: `/asset-guard/maintenance-plans`
- Incidents: `/asset-guard/incidents`

Media (signed):

- Incidents download: `asset-guard.incidents.download`
- Checklist item media: `asset-guard.inspections.items.media`
- Inspection result download: `asset-guard.inspections.results.download`
- Generic signed media: `asset-guard.media.show.signed`

### Livewire components (highlights)

[](#livewire-components-highlights)

See service provider for full list. Examples:

- `asset-guard.assets.index`, `asset-guard.locations.index`, `asset-guard.asset-types.index`
- `asset-guard.dashboard.*`
- `asset-guard.inspections.*` (performer, batch-performer, pre-use-performer, show, checklist-items-\*)
- `asset-guard.maintenance-plans.index`
- `asset-guard.incidents.*`

### UI &amp; i18n

[](#ui--i18n)

- Tailwind v4 (`@import "tailwindcss";`)
- Flux UI Free button variants: primary, filled, danger, ghost, subtle
- Translations can be published to `lang/vendor/asset-guard`

### Tips

[](#tips)

- Run focused tests as needed; run frontend build for UI updates
- Format with Pint: `vendor/bin/pint --dirty`

---

ライセンス
-----

[](#ライセンス)

© Lastdino. All rights reserved.

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance90

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~11 days

Total

17

Last Release

47d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a91f54a5ec14785c7b8531214937c76ec0ec0874736a709c2bd973fdb9e619b?d=identicon)[lastdino](/maintainers/lastdino)

---

Top Contributors

[![lastdino](https://avatars.githubusercontent.com/u/87484368?v=4)](https://github.com/lastdino "lastdino (23 commits)")

---

Tags

laravelLastdinoAssetGuard

### Embed Badge

![Health badge](/badges/lastdino-asset-guard/health.svg)

```
[![Health](https://phpackages.com/badges/lastdino-asset-guard/health.svg)](https://phpackages.com/packages/lastdino-asset-guard)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[livewire/flux

The official UI component library for Livewire.

9385.0M86](/packages/livewire-flux)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[revolution/self-ordering

Self Ordering System

2112.7k](/packages/revolution-self-ordering)[joelwmale/livewire-quill

Easily add QuillJS with image support to any Laravel Livewire component.

1314.0k](/packages/joelwmale-livewire-quill)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
