{"action":"created","issue":{"url":"https://api.github.com/repos/antonioribeiro/tracker/issues/457","repository_url":"https://api.github.com/repos/antonioribeiro/tracker","labels_url":"https://api.github.com/repos/antonioribeiro/tracker/issues/457/labels{/name}","comments_url":"https://api.github.com/repos/antonioribeiro/tracker/issues/457/comments","events_url":"https://api.github.com/repos/antonioribeiro/tracker/issues/457/events","html_url":"https://github.com/antonioribeiro/tracker/issues/457","id":482030543,"node_id":"MDU6SXNzdWU0ODIwMzA1NDM=","number":457,"title":"Better way to use this project in a nother project","user":{"login":"osuagwu","id":20265860,"node_id":"MDQ6VXNlcjIwMjY1ODYw","avatar_url":"https://avatars2.githubusercontent.com/u/20265860?v=4","gravatar_id":"","url":"https://api.github.com/users/osuagwu","html_url":"https://github.com/osuagwu","followers_url":"https://api.github.com/users/osuagwu/followers","following_url":"https://api.github.com/users/osuagwu/following{/other_user}","gists_url":"https://api.github.com/users/osuagwu/gists{/gist_id}","starred_url":"https://api.github.com/users/osuagwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/osuagwu/subscriptions","organizations_url":"https://api.github.com/users/osuagwu/orgs","repos_url":"https://api.github.com/users/osuagwu/repos","events_url":"https://api.github.com/users/osuagwu/events{/privacy}","received_events_url":"https://api.github.com/users/osuagwu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-08-18T19:51:30Z","updated_at":"2019-10-05T06:45:02Z","closed_at":null,"author_association":"NONE","body":"It is a little bit difficult to use this package inside another project because you have to  tell your users to go and make a few config first and also migrations are coppied into the main applications migrations. So as soon as the package is published, lots of migrations appear from no where. \r\n\r\nMy question is why can't this package use \r\n```php \r\n$this->loadMigrationsFrom() \r\n```\r\ninstead of publishing them to clutter the main migration directory?\r\n\r\nI don't like the idea of everything beign disabled out of the box.  Is like buying a radio and having to specify that you would like it to talk. There should be a default configuration out of the box; this may include only essential logs, just like in any other software. It always great when a package just works out of the box. And I don't have to tell my package to go and perform some configuration for a nother package before anything would work. \r\n\r\nThanks a lot."},"comment":{"url":"https://api.github.com/repos/antonioribeiro/tracker/issues/comments/538623109","html_url":"https://github.com/antonioribeiro/tracker/issues/457#issuecomment-538623109","issue_url":"https://api.github.com/repos/antonioribeiro/tracker/issues/457","id":538623109,"node_id":"MDEyOklzc3VlQ29tbWVudDUzODYyMzEwOQ==","user":{"login":"lovekrissh143","id":48975027,"node_id":"MDQ6VXNlcjQ4OTc1MDI3","avatar_url":"https://avatars2.githubusercontent.com/u/48975027?v=4","gravatar_id":"","url":"https://api.github.com/users/lovekrissh143","html_url":"https://github.com/lovekrissh143","followers_url":"https://api.github.com/users/lovekrissh143/followers","following_url":"https://api.github.com/users/lovekrissh143/following{/other_user}","gists_url":"https://api.github.com/users/lovekrissh143/gists{/gist_id}","starred_url":"https://api.github.com/users/lovekrissh143/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lovekrissh143/subscriptions","organizations_url":"https://api.github.com/users/lovekrissh143/orgs","repos_url":"https://api.github.com/users/lovekrissh143/repos","events_url":"https://api.github.com/users/lovekrissh143/events{/privacy}","received_events_url":"https://api.github.com/users/lovekrissh143/received_events","type":"User","site_admin":false},"created_at":"2019-10-05T06:45:02Z","updated_at":"2019-10-05T06:45:02Z","author_association":"NONE","body":"> It is a little bit difficult to use this package inside another project because you have to tell your users to go and make a few config first and also migrations are coppied into the main applications migrations. So as soon as the package is published, lots of migrations appear from no where.\r\n> \r\n> My question is why can't this package use\r\n> \r\n> ```\r\n> $this->loadMigrationsFrom() \r\n> ```\r\n> \r\n> instead of publishing them to clutter the main migration directory?\r\n> \r\n> I don't like the idea of everything beign disabled out of the box. Is like buying radio and having to specify that you would like it to talk. There should be a default configuration out of the box; this may include only essential logs, just like in any other software. It always great when a package just works out of the box. And I don't have to tell my package to go and perform some configuration for another package before anything would work.\r\n> \r\n> Thanks a lot.\r\n\r\nThe thing is that, if everything should be enabled by default then it would garbage your database with lots of contents that you don't even care about and it will surely hamper the performance and slow down your site like a hell. This happened to me and I created a separate config for it so that only those things I want to log will be added to the database.\r\n\r\n\r\nAnd for your first query why?\r\n\r\n`$this->loadMigrationsFrom()`\r\n\r\nthe problem is that if you would like to modify something for your own purpose then you would have to dig into the package and make changes there which doesn't sound practical.\r\n\r\nI hope I was able to erase your confusion.\r\nThanks!"}}
{"actor":{"display_login":"lovekrissh143"}}