{"action":"created","issue":{"url":"https://api.github.com/repos/hyn/multi-tenant/issues/344","repository_url":"https://api.github.com/repos/hyn/multi-tenant","labels_url":"https://api.github.com/repos/hyn/multi-tenant/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/hyn/multi-tenant/issues/344/comments","events_url":"https://api.github.com/repos/hyn/multi-tenant/issues/344/events","html_url":"https://github.com/hyn/multi-tenant/issues/344","id":280161590,"number":344,"title":"Tenant specific media and trans files not showing up","user":{"login":"ReinierB","id":26274259,"avatar_url":"https://avatars1.githubusercontent.com/u/26274259?v=4","gravatar_id":"","url":"https://api.github.com/users/ReinierB","html_url":"https://github.com/ReinierB","followers_url":"https://api.github.com/users/ReinierB/followers","following_url":"https://api.github.com/users/ReinierB/following{/other_user}","gists_url":"https://api.github.com/users/ReinierB/gists{/gist_id}","starred_url":"https://api.github.com/users/ReinierB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReinierB/subscriptions","organizations_url":"https://api.github.com/users/ReinierB/orgs","repos_url":"https://api.github.com/users/ReinierB/repos","events_url":"https://api.github.com/users/ReinierB/events{/privacy}","received_events_url":"https://api.github.com/users/ReinierB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-12-07T15:02:22Z","updated_at":"2017-12-08T12:30:06Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\n\r\nI am building a multi-tenancy application using Laravel 5.5 and hyn/multi-tenancy (5.0.6.) and 5.0.15 (I upgraded after reporting this issue, but there is no improvement.)\r\n\r\nThe multi-tenancy works fine for the database: if I login to the application for a specific tenant through the url for the tenant, changes to the data are nicely reflected in the database of the tenant.\r\n\r\nHowever, I try to display a tenant specific logo.jpg in the header and I created a tenant specif translation file.\r\n\r\nAs in the documentation, I created the folders \"media\" and \"trans\" in the tenant folder (\"storage/app/tenancy/tenants/b015cd66499f41d39ed3c8d08ed4708a\").\r\n\r\nUnfortunately, I cannot get this to work. I chatted about this issue with Luceos and he asked me to create this issue.\r\n\r\nIn my blade.php I have the following code. The logo.jpg shows in the browser for the tenant in these situations:\r\n\r\n                    <img src=\"{{ asset('storage/media/logo.jpg') }}\" alt=\"Cash Flow Forecaster Logo\">\r\nAnd:\r\n                    img src=\"storage/media/logo.jpg\" alt=\"Cash Flow Forecaster LogoX\"\r\n\r\nBut the logo.jpg file is always served from this folder:\r\n\r\n\"storage/app/public/media\"\r\n\r\nand not from  \r\n\r\n\"storage/app/tenancy/tenants/b015cd66499f41d39ed3c8d08ed4708a\", \r\n\r\nwhat I expect.\r\n\r\nI cannot figure out what's wrong.\r\n\r\n- Laravel :5.5\r\n- Multi-tenancy: 5.0.15\r\n- database driver and version: MariaDb 10.2.10\r\n- webserver software and version: nginx 1.13.3\r\n[config.zip](https://github.com/hyn/multi-tenant/files/1539485/config.zip)\r\n\r\n\r\n\r\n- php version: 7.1.10\r\n\r\nVagrant box / Homestead\r\nUbuntu 16.04\r\n\r\n---\r\n\r\n__tenancy.php config__\r\n\r\n```php\r\n\r\n```\r\n\r\n__webserver.php config__\r\n\r\n```php\r\n\r\n```\r\n\r\n---\r\n\r\n__Error log__\r\n\r\nThere are no errors in the log related to this issue.\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/hyn/multi-tenant/issues/comments/350252120","html_url":"https://github.com/hyn/multi-tenant/issues/344#issuecomment-350252120","issue_url":"https://api.github.com/repos/hyn/multi-tenant/issues/344","id":350252120,"user":{"login":"ReinierB","id":26274259,"avatar_url":"https://avatars1.githubusercontent.com/u/26274259?v=4","gravatar_id":"","url":"https://api.github.com/users/ReinierB","html_url":"https://github.com/ReinierB","followers_url":"https://api.github.com/users/ReinierB/followers","following_url":"https://api.github.com/users/ReinierB/following{/other_user}","gists_url":"https://api.github.com/users/ReinierB/gists{/gist_id}","starred_url":"https://api.github.com/users/ReinierB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ReinierB/subscriptions","organizations_url":"https://api.github.com/users/ReinierB/orgs","repos_url":"https://api.github.com/users/ReinierB/repos","events_url":"https://api.github.com/users/ReinierB/events{/privacy}","received_events_url":"https://api.github.com/users/ReinierB/received_events","type":"User","site_admin":false},"created_at":"2017-12-08T12:30:05Z","updated_at":"2017-12-08T12:30:05Z","author_association":"NONE","body":"Hi Julian,\n\nYes, I have tried that too. If I use asset('storage/media/logo.jpg') the\nlogo in the default folder is displayed, if I follow your suggestion, the\nlogo.jpg is not found at all.\n\n(sorry for the late response, my Windows 10 crashed and I am\nreinstalling.... :-( )\n\nOn Fri, Dec 8, 2017 at 3:36 AM, Julian Renard <notifications@github.com>\nwrote:\n\n> Hello,\n> I don't know if it's related but did you try with: asset('media/logo.jpg')\n> ?\n> I use this path on my app and it's work fine.\n>\n> —\n> You are receiving this because you authored the thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/hyn/multi-tenant/issues/344#issuecomment-350155766>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AZDp0wpiHzP6r8WrigoJ-xVI1xc0yFgHks5s-KDEgaJpZM4Q5ryK>\n> .\n>\n\n\n\n-- \nMat beschte Gréiss\nKind regards\n\n\nReinier Bloem\nTéléphone: +352 273 950 59\nMobile: +33 7800 22533\n"}}
{"actor":{"display_login":"ReinierB"}}