Мне интересно, как зарегистрировать пользовательский метод в:
Illuminate/Foundation/Application.php
Как:
/**
* Get the current application name.
*
* @return string
*/
public function getName()
{
return $this['config']->get('app.name');
}
Взято из:
/**
* Get the current application locale.
*
* @return string
*/
public function getLocale()
{
return $this['config']->get('app.locale');
}
Где я должен поставить это, а не файл вендора ofc?
Спасибо