-
Laravel 7 adds the extremely useful `withCasts()` method to the Eloquent query builder. See the docs for more details: https://laravel.com/docs/7.x/eloquent-mutators#query-time-casting
I was wonder…
ghost updated
3 years ago
-
I've generated model IDE helper mixins using `ide-helper:models -M`.
One example of a model is this:
```php
/**
* @mixin IdeHelperDegreeType
*/
class DegreeType extends Model
```
Looki…
-
In laravel 9 with MongoDB(jenssegers/mongodb 3.9) I added withCount in request :
$subscription = Subscription
::getById($subscriptionId)
->withCount('userSubscriptions')
…
-
### Versions:
- ide-helper Version: 2.12.3
- Laravel Version: 9.25.1
- PHP Version: 8.1.x
### Description:
Suppose a model like this:
```php
Grldk updated
7 months ago
-
I'm not actually aware of how many fellow Laravel developers would actually like this feature implemented, but I would really like this implemented for, in my humble opinion valid reasons. I could lis…
-
# Making Eloquent models translatable - Freek Van der Herten's blog on PHP, Laravel and JavaScript
[https://freek.dev/427-making-eloquent-models-translatable](https://freek.dev/427-making-eloquent-…
-
Version: v3.1.4 php: 5.5
When I tried to track event, it throws `Integrity constraint violation: 1048 Column 'log_id' cannot be null `. It wouldn't be broken immediately after live the code. After ar…
-
### Versions:
- ide-helper Version: 2.13.0
- Laravel Version: 10
- PHP Version: 8.1
### Description:
All models in file `_ide_helper_models.php` extends always \Eloquent.
Sometimes it's wr…
-
# Problem:
Using the "Move to Top" or "Move to End" buttons does not work as expected and creates incorrect sort order values after the sorting is done.
Note: Using Drag-and-Drop to sort / reorder r…
-
### Description
I've just upgraded my Laravel project to Laravel 11 from Laravel 10. I've flushed caches. I'm getting the error:
> There is no role named `super_admin` for guard `web`.
Coming…