-
- Larastan Version: 2.9.8
- Laravel Version: 11.21.0
### Description
Implementing a `newCollection()` method on models in exactly the same way as Larastan's own test suite's `Account` and `Ac…
-
- Laravel Version: 10
- PHP Version: 8.1
- Laravel-admin: v1.8.19
### Description:
Model have two primary key:
protected $primaryKey = ['report_id', 'user_id'];
When displaying the grid, I g…
-
# 分享一个便捷、通用的 laravel 模型属性转换器
> 分享一下自己编写的一个便捷、`通用` 的 laravel 模型属性[转换器类](https://github.com/guanguans/laravel-skeleton/blob/master/app/Casts/CallbackGetCast.php)。可便捷的通过调用 `回调类型的字符串` 对属性进行转换。
## 通用…
-
Hi, I'd like to thank the contributors for this amazing project. It literally has saved me from creating a DB versioning system from scratch, so I'm really grateful.
After checking the readme, I hav…
-
**Is your feature request related to a problem? Please describe.**
I'm always frustrated when I make a `layout` with relation table and field, e.g., ...
- Let's say every `post` has one `author`, …
-
## Your Question
hi, I'm looking for a solution to listen for the events trigger model ( created, updated, deleted, creating, deleting). like observer laravel
## The document you expected this…
ghost updated
2 years ago
-
**Is your feature request related to a problem? Please describe.**
There is no way to see how many people have shared their thoughts and reviews for the book.
**Describe the solution you'd li…
-
Currently, you cannot index arrays. However, I believe it is possible (since Algolia does it somehow). I want to request this feature.
I want something like this
```php
-
https://github.com/XXXVLSCCCP/Big-Bang/blob/c42f49faf8057b521cfec193809f009b019c85d3/app/Models/User.php#L52
`public function getGenderAsString()`
`{`
` switch($this->gender) {`
` case…
-
We'll use a property decorator to do this, this will allow us to do keep typings correct.
Then we'll set up two methods of loading/defining relations:
- A `with` property as an array, just like La…