Skip to content

Commit

Permalink
Add laravel-data package
Browse files Browse the repository at this point in the history
  • Loading branch information
curder committed Feb 4, 2024
1 parent 684f175 commit ba557cb
Show file tree
Hide file tree
Showing 17 changed files with 61 additions and 20 deletions.
2 changes: 1 addition & 1 deletion docs/.vitepress/nav.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default [
items: [
{text: "代码片段", link: '/partials/migrations'},
{text: "小技巧", link: '/tips/db-models-and-eloquent'},
{text: "常用扩展", link: "/packages/pail"},
{text: "常用扩展", link: "/packages/"},
{text: '其他', link: '/others/laravel-create-custom-facade-test-demo'},
]
},
Expand Down
43 changes: 31 additions & 12 deletions docs/.vitepress/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ export default {
text: '一些示例',
items: [
{text: "计算 GitHub 事件得分总和", link: "/collections/examples/format-github-events-score"},
{text: "格式化计算两个数组的数据", link: "/collections/examples/format-calculate-the-data-of-the-two-arrays"},
{
text: "格式化计算两个数组的数据",
link: "/collections/examples/format-calculate-the-data-of-the-two-arrays"
},
{text: "通过值获取对应key", link: "/collections/examples/get-the-corresponding-key-by-value"},
{text: "map 格式化数据", link: "/collections/examples/map-format"},
{text: "格式化 Markdown 数据列表", link: "/collections/examples/markdown-format"},
Expand Down Expand Up @@ -186,17 +189,27 @@ export default {
],
'/packages/': [
{
text: '',
text: 'Laravel',
items: [
{text: "Pail", link: "/packages/laravel/pail"},
{text: "Pint", link: "/packages/laravel/pint"},
]
},
{
text: 'Spatie',
items: [
{text: "Laravel Pail", link: "/packages/pail"},
{text: "Laravel Pint", link: "/packages/pint"},
{text: "Laravel Login Link", link: "/packages/laravel-login-link"},
{text: "Sushi 🍣", link: "/packages/sushi"},
{text: "Livewire Missing Assertions", link: "/packages/missing-livewire-assertions"},
{text: "Laravel Backup", link: "/packages/backup"},
{text: "Laravel Data", link: "/packages/laravel-data"},
{text: "Login Link", link: "/packages/spatie/laravel-login-link"},
{text: "Backup", link: "/packages/spatie/laravel-backup"},
{text: "Data", link: "/packages/spatie/laravel-data"},
]
},
{
text: 'Others',
items: [
{text: "Sushi 🍣", link: "/packages/others/sushi"},
{text: "Livewire Missing Assertions", link: "/packages/others/missing-livewire-assertions"},
],
}
},
],
'/partials/': [
{
Expand All @@ -220,7 +233,10 @@ export default {
{text: "DB 模型和 Eloquent", link: "/tips/db-models-and-eloquent"},
{text: "优化 Factory 数据库批量插入", link: '/tips/optimize-factory-database-batch-insert'},
{text: "重用环境变量值", link: '/tips/reuse-the-environment-variable-value'},
{text: "使用 Laravel simple-excel 处理大型 CSV 文件", link: '/tips/process-large-csv-files-with-laravel-using-simple-excel'},
{
text: "使用 Laravel simple-excel 处理大型 CSV 文件",
link: '/tips/process-large-csv-files-with-laravel-using-simple-excel'
},
]
}
],
Expand All @@ -232,7 +248,10 @@ export default {
{text: "自定义异常", link: "/others/using-custom-exceptions-to-write-better-and-clearer-code"},
{text: "使用 pest 测试 Laravel API", link: "/others/unit-test-laravel-api-pest-framework.md"},
{text: "自定义逻辑 Macros", link: "/others/macros.md"},
{text: '使用 Alpine.js 滚动到验证错误', link: "/others/scroll-to-validation-error-in-laravel-using-alpinejs"},
{
text: '使用 Alpine.js 滚动到验证错误',
link: "/others/scroll-to-validation-error-in-laravel-using-alpinejs"
},
{text: '生成视图的 Artisan 命令', link: "/others/artisan-command-to-generate-views-in-laravel"},
],
},
Expand Down
18 changes: 12 additions & 6 deletions docs/packages/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
# Laravel 扩展

- [Laravel Pail 日志](pail.md)
- [Laravel pint 代码格式化](pint.md)
- [Laravel Login Link 快速登录](laravel-login-link.md)
- [Livewire 缺少的测试断言](missing-livewire-assertions.md)
- [Laravel Backup 数据备份](backup.md)
- [Laravel Data 数据对象](laravel-data.md)
- [Laravel](laravel/README.md)
- [Laravel Pail 日志](laravel/pail.md)
- [Laravel pint 代码格式化](laravel/pint.md)

- [Spatie](spatie/README.md)
- [Laravel Login Link 快速登录](spatie/laravel-login-link.md)
- [Laravel Backup 数据备份](spatie/laravel-backup.md)
- [Laravel Data 数据对象](spatie/laravel-data.md)

- [Others](others/README.md)
- [Livewire 缺少的测试断言](others/missing-livewire-assertions.md)
- [Sushi](others/sushi.md)
4 changes: 4 additions & 0 deletions docs/packages/laravel/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Laravel

- [Laravel Pail 日志](pail.md)
- [Laravel pint 代码格式化](pint.md)
File renamed without changes
1 change: 1 addition & 0 deletions docs/packages/laravel/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--@include ./README.md -->
2 changes: 1 addition & 1 deletion docs/packages/pail.md → docs/packages/laravel/pail.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ composer require laravel/pail
php artisan pail
```

![](./images/pail-logs.png)
![](images/pail-logs.png)

上面是基本的使用方式,同时 Laravel Pail 有一些标志允许以有用的方式过滤日志消息。

Expand Down
File renamed without changes.
4 changes: 4 additions & 0 deletions docs/packages/others/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Spatie

- [Livewire 缺少的测试断言](missing-livewire-assertions.md)
- [Sushi](sushi.md)
1 change: 1 addition & 0 deletions docs/packages/others/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--@include ./README.md -->
File renamed without changes.
5 changes: 5 additions & 0 deletions docs/packages/spatie/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Spatie

- [Laravel Login Link 快速登录](laravel-login-link.md)
- [Laravel Backup 数据备份](laravel-backup.md)
- [Laravel Data 数据对象](laravel-data.md)
1 change: 1 addition & 0 deletions docs/packages/spatie/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!--@include ./README.md -->
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ba557cb

Please sign in to comment.