A modularized way of working with laravel