Code Monkey home page Code Monkey logo

laravel10-filament3's Introduction

Laravel10 Filament3

初始化

# 安裝composer套件
composer install

# 環境變數
cp .env.example .env

# shell加入sail
alias sail='[ -f sail ] && sh sail || sh vendor/bin/sail'

# database...wip
mysql -u root -p
CREATE DATABASE IF NOT EXISTS `laravel10_filament3`;
GRANT ALL PRIVILEGES ON  `laravel10_filament3`.* TO 'sail'@'%';

# 容器啓動
sail up -d

# minio新增bucket/Access Policy更改public
AWS_*=...

# appkey
sail php artisan k:g

# 使用laravel10-api專案的資料庫
# 建立資料庫/檢查帳號權限
# 資料庫遷移
sail php artisan migrate

# 新增管理員
sail php artisan make:filament-user

# 新增預設權限
sail php artisan db:seed DefaultSeeder
sail php artisan db:seed PolicySeeder

# 關閉
sail down

常用指令

# 新增管理員
php artisan make:filament-user

# 資源
php artisan make:filament-resource

# 使用軟刪除
php artisan make:filament-resource Customer --soft-deletes

# 檢視頁ViewRecord
php artisan make:filament-page ViewUser --resource=UserResource --type=ViewRecord

# 新增關聯資源(軟刪除,附加)
php artisan make:filament-relation-manager CategoryResource posts title --soft-deletes --attach

# 更新
composer update
php artisan filament:upgrade

語系檔案

php artisan vendor:publish --tag=filament-panels-translations

php artisan vendor:publish --tag=filament-actions-translations

php artisan vendor:publish --tag=filament-forms-translations

php artisan vendor:publish --tag=filament-notifications-translations

php artisan vendor:publish --tag=filament-tables-translations

php artisan vendor:publish --tag=filament-translations

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.