How to create favourite system in laravel with relations with multi model ?
- Yogesh Kumar
Attempt to read property "user_id" on null because there is no $this-> favorite record. It's returning null, in this case.
$this->favourite === null
52 0 7
* Be the first to Make Comment