-
```php
$project = $task->project()->withTrashed()->first();
```
Produce:
> Call to an undefined method Illuminate\Database\Eloquent\Relations\BelongsTo::withTrashed().
-
My model implements soft deleting just as laravel documentation is describing it: uses SoftDeletes trait and has deleted_at column in migration. When I call delete method of the model outside the json…
-
![default](https://user-images.githubusercontent.com/32259003/45547981-b4be1880-b833-11e8-9f1c-f4372a213a42.png)
why do I display Trashed in filters?
I did not include it.
and how to remove it
ghost updated
3 years ago
-
- Laravel Version: 8.12.2
- PHP Version: 8.0.2
- Database Driver & Version: MySQL 8.0.18
### Description:
Running into a weird issue with a listener. Not sure if it's a bug or user error…
-
- Larastan Version: 0.7.0
- `--level` used: 2
### Description
I'm having this error on phpstan (version 0.12.78):
```
TypeError
in_array() expects parameter 2 to be array, bool give…
-
- Larastan Version: 0.6.12
- `--level` used: 1
### Description
I am getting a similar error since upgrading from phpstan 0.6.11 to 0.6.12, I am running on PHP 8.
```
Call to undefined met…
-
- Laravel Version: 8.12
- PHP Version: 7.4.3
- Database Driver & Version: MariaDB 10.4.14
### Description:
I have 3 tables, 1 being a Many To Many relationship table
1) vehicles
2) ac…
-
This is a **bug**.
### Prerequisites
* [x] Are you running the latest version?
* [x] Are you reporting to the correct repository?
* [x] Did you check the documentation?
* [x] Did you perfo…
-
# Issue
*Trait method 'newBelongsToMany' will not be applied, because it collides with 'ExtendRelationsTrait'*
```
namespace App\Models;
use App\BlamableTrait;
use App\HasLogsTrait;
use App\In…
-
When making data changes (inserts, updates, and deletes) from one model/table to another model/table via Eloquent Relationships, the `protected static $flushCacheOnUpdate = true;` feature does not see…