FrozenNode / Laravel-Administrator

An administrative interface package for Laravel
http://administrator.frozennode.com/
MIT License
1.94k stars 504 forks source link

Use Laravel's "config" helper to get model's config #1027

Open pavgra opened 8 years ago

pavgra commented 8 years ago

Use Laravel's "config" helper to get model's config (to retrieve all changes that might be done to config during app runtime)

KingMob commented 8 years ago

Unfortunately, this presents an obstacle to fixing #980, since heavier reliance on Laravel's config() will mean more work to avoid breaking artisan config:cache. As Laravel currently stands, it can't handle anonymous functions in the config files when caching.