danielveselinov / BrainsterProjects_DanielVeselinovWD6

All my projects that I've been working on while taking Brainster Full Stack Web Academy.
0 stars 0 forks source link

Projects index #4

Open krekas opened 1 year ago

krekas commented 1 year ago

This line

https://github.com/danielveselinov/BrainsterProjects_DanielVeselinovWD6/blob/project03/app/Http/Controllers/ProjectController.php#L21

Again, relations should be used. Better write:

Auth::user()->projects()->latest()->get();