in my .env file if declare a variable for the correct file store for the environment I am in with
FILE_STORE=https://file_store.dev/
in a view composer in App/AppServiceProvider, I pass that variable to all views with
view()->composer('*', function ($view) {
$view->with('FILE_STORE', config('FILE_STORE'));
});
In my view I will have a conditional to ensure the user HAS an avatar else display a "shadow man", however I can't seem to get the variable to resolve
<img src="/images/avatars/default.png"
alt=""
class="user__avatar"
style="max-height: 60px !important;">
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2G0PyFD
via IFTTT
Aucun commentaire:
Enregistrer un commentaire