{"action":"created","issue":{"url":"https://api.github.com/repos/LaraChat/live/issues/3","repository_url":"https://api.github.com/repos/LaraChat/live","labels_url":"https://api.github.com/repos/LaraChat/live/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/LaraChat/live/issues/3/comments","events_url":"https://api.github.com/repos/LaraChat/live/issues/3/events","html_url":"https://github.com/LaraChat/live/issues/3","id":129999257,"number":3,"title":"CMS","user":{"login":"alnutile","id":365385,"avatar_url":"https://avatars.githubusercontent.com/u/365385?v=3","gravatar_id":"","url":"https://api.github.com/users/alnutile","html_url":"https://github.com/alnutile","followers_url":"https://api.github.com/users/alnutile/followers","following_url":"https://api.github.com/users/alnutile/following{/other_user}","gists_url":"https://api.github.com/users/alnutile/gists{/gist_id}","starred_url":"https://api.github.com/users/alnutile/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alnutile/subscriptions","organizations_url":"https://api.github.com/users/alnutile/orgs","repos_url":"https://api.github.com/users/alnutile/repos","events_url":"https://api.github.com/users/alnutile/events{/privacy}","received_events_url":"https://api.github.com/users/alnutile/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-30T15:32:53Z","updated_at":"2016-02-04T19:09:15Z","closed_at":null,"body":"Read recently about Wordpress and Laravel integration. Just wondering the different requirements for a CMS and when Laravel is a good fit and when it is not and we need Wordpress or Drupal etc"},"comment":{"url":"https://api.github.com/repos/LaraChat/live/issues/comments/180005411","html_url":"https://github.com/LaraChat/live/issues/3#issuecomment-180005411","issue_url":"https://api.github.com/repos/LaraChat/live/issues/3","id":180005411,"user":{"login":"tutelagesystems","id":811123,"avatar_url":"https://avatars.githubusercontent.com/u/811123?v=3","gravatar_id":"","url":"https://api.github.com/users/tutelagesystems","html_url":"https://github.com/tutelagesystems","followers_url":"https://api.github.com/users/tutelagesystems/followers","following_url":"https://api.github.com/users/tutelagesystems/following{/other_user}","gists_url":"https://api.github.com/users/tutelagesystems/gists{/gist_id}","starred_url":"https://api.github.com/users/tutelagesystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tutelagesystems/subscriptions","organizations_url":"https://api.github.com/users/tutelagesystems/orgs","repos_url":"https://api.github.com/users/tutelagesystems/repos","events_url":"https://api.github.com/users/tutelagesystems/events{/privacy}","received_events_url":"https://api.github.com/users/tutelagesystems/received_events","type":"User","site_admin":false},"created_at":"2016-02-04T19:09:15Z","updated_at":"2016-02-04T19:09:15Z","body":"I have been working on one for work, however I cannot share any of the true code as it isn't open source... in the end I don't even own it technically ;)\r\n\r\nThe thing with the way that we have to do it at work isn't a real \"CMS\" it is used more for our other developers develop an application and it can go into this application and it allows us to assign permissions to a user so they can access the application and what permissions they can do inside of it.\r\n\r\nBasically the way I have done it is using a Service Provider that will loop through any installed modules (and looking at that code now, should also check for enabled) and for each one it will load the routes up and the views.\r\n\r\nEverything else because of namespacing works (models, etc)... Anyway I can share the Service Provider as I found the idea on the web already, just with some modifications\r\n\r\n```\r\n<?php namespace App\\Modules;\r\n\r\nclass ServiceProvider extends  \\Illuminate\\Support\\ServiceProvider\r\n{\r\n\r\n    public function boot()\r\n    {\r\n        // check to see if the module table exists\r\n        $results = \\DB::select(\"SHOW TABLES like 'modules'\");\r\n\r\n        if(count($results) <= 0)\r\n        {\r\n            return;\r\n        }\r\n\r\n        // find all modules where they are installed\r\n        $modules = \\App\\Module::where('installed', true)->get();\r\n        // $modules = \\App\\Module::all();\r\n\r\n        foreach($modules as $module)\r\n        {\r\n            // load routes\r\n            if(file_exists(__DIR__ .'/'. $module->class_name .'/routes.php')) {\r\n                include __DIR__ .'/'. $module->class_name .'/routes.php';\r\n            }\r\n\r\n            // load views\r\n            if(is_dir(__DIR__ .'/'. $module->class_name .'/Views')) {\r\n                $this->loadViewsFrom(__DIR__ .'/'. $module->class_name.'/Views', $module->class_name);\r\n            }\r\n        }\r\n    }\r\n\r\n    public function register(){}\r\n\r\n}\r\n```\r\n\r\nNot sure if this is helpful to anyone but it could help in creating such a system where you can drop in modules / applications."}}