Closed neon64 closed 10 years ago
Hello, I'm trying to use Laravel Doctrine within a package, and I'm struggling to find a good way of adding paths to the metadata configuration array without changing the config file itself.
metadata
Is there a recommended way to do this?
I realise one way might be:
Config::set( 'mitchellvanw/laravel-doctrine::doctrine.metadata', array_merge( Config::get('mitchellvanw/laravel-doctrine::doctrine.metadata'), [ 'foo/bar', 'baz/qux' ] ));
However surely there is a cleaner way to do it.
There's a function in the helpers file for laravel called append_config() that allows you to do exactly that... took me a little while as well. hehe
Thanks, it works great!
Hello, I'm trying to use Laravel Doctrine within a package, and I'm struggling to find a good way of adding paths to the
metadata
configuration array without changing the config file itself.Is there a recommended way to do this?
I realise one way might be:
However surely there is a cleaner way to do it.