guillaumebriday / laravel-blog

Laravel 10.0 blog application with Hotwire, Horizon, Telescope, Sanctum, Breeze and Pusher
MIT License
1.72k stars 559 forks source link

Changed how Comment is resolved #95

Closed matiaslauriti closed 4 years ago

matiaslauriti commented 4 years ago

I have updated how you resolve Comment (it is already in the Resource as $this->resource)

matiaslauriti commented 4 years ago

Just for you to know, if you want to get any Resource's methods resolved, you can use @mixin \App\Models\MODEL so instead of telling you that a relation like $this->hasThumbnails() does not exist, it will automatically find it (working in PHPStorm)

guillaumebriday commented 4 years ago

Hey @matiaslauriti !

That's neat 👍 I think it's not in the documentation, maybe we should add this.

Thank you

guillaumebriday commented 4 years ago

Thank you for the tips too, it would be very useful. Unfortunately, I do not use PHPStorm yet 🙂