Skip to content

Instantly share code, notes, and snippets.

@alber70g
Last active August 29, 2015 14:16
Show Gist options
  • Save alber70g/f4e4aed6b3701387368e to your computer and use it in GitHub Desktop.
Save alber70g/f4e4aed6b3701387368e to your computer and use it in GitHub Desktop.
Proposed directory structure

@laravelphp is there a way to change directory structure? I'd like to have functional based separation instead of a technical separation.

This way you don't have to switch between directories like cd ../../../resources/views/<ControllerName> to get to your views.

Http

  • Controllers
    • ControllerNameController
      • ControllerNameController.php
      • Views
        • ViewName1.blade.php
        • ViewName2.blade.php
      • ViewModels
        • ViewName1ViewModel.php
        • ViewName2ViewModel.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment