---
title: "Chris Gmyr (@cmgmyr) | Hashnode"
description: "Staff Engineer @ Rula & TrianglePHP Co-Organizer | Slightly Caffeinated Podcast  Co-Host. Read the latest articles by Chris Gmyr on Hashnode."
url: "https://hashnode.com/@cmgmyr"
---

@cmgmyr

# Chris Gmyr

@cmgmyr · Cary, NC · Joined September 2017

Staff Engineer @ Rula & TrianglePHP Co-Organizer | Slightly Caffeinated Podcast Co-Host

## Comments

[Typically I try to stick with a single resource per URL group. If I have to, I might add a sub-resource, but only if those sub-resources are minimal. I definitely do not have more than one sub resource. Usually, sub-resources could just be designed as top level resources. For example, this is "ok": Route::resource('posts', 'PostsController'); Route::resource('posts.comments', 'PostsCommentsController'); but, in my opinion, this would be "better": Route::resource('posts', 'PostsController'); Route::resource('comments', 'CommentsController'); Your milage may vary though, it also depends on what your app does, or what you might want to do with it in the future. In the top example, you are somewhat assuming that comments only belong on posts. If that's the case, you're probably fine. In the second example, comments are on the top level and can be potentially attached to anything. Not only Posts, but also maybe Pages, User Profiles, anything really.](https://hashnode.com/forums/thread/building-an-api-with-laravel/comment/59de4162fb1deef9745a47b9#reply-59dfc7b2e8b3f8fd0de172f8)

Reply · Thread · Oct 12, 2017 · [Building an API with Laravel](https://hashnode.com/forums/thread/building-an-api-with-laravel)

[If you're using Laravel 5.5 you can utilize Eloquent API Resources https://laravel.com/docs/5.5/eloquent-resources which is loosely based on Fractal https://fractal.thephpleague.com/ which you could also use instead if you needed something more robust. Versioning is a tough topic, but this article should help you out https://blog.apisyouwonthate.com/api-versioning-has-no-right-way-f3c75457c0b7](https://hashnode.com/forums/thread/building-an-api-with-laravel/comment/59de4162fb1deef9745a47b9)

Comment · Thread · Oct 11, 2017 · 4 · [Building an API with Laravel](https://hashnode.com/forums/thread/building-an-api-with-laravel)

[Mainly drums here, but also a little guitar. I've played drums for over 20 years, of which I've been in "good" and not so good bands - even a Journey tribute band for a bit. I like playing all music but mostly heavier rock/metal with some good double bass 🥁](https://hashnode.com/forums/thread/are-you-musicians/comment/59cbec96c5384f840b989539)

Comment · Thread · Sep 27, 2017 · 1 · [Are you musicians?](https://hashnode.com/forums/thread/are-you-musicians)
