I am wondering how to register custom method within:
Illuminate/Foundation/Application.php
Like:
/**
* Get the current application name.
*
* @return string
*/
public function getName()
{
return $this['config']->get('app.name');
}
Taken from:
/**
* Get the current application locale.
*
* @return string
*/
public function getLocale()
{
return $this['config']->get('app.locale');
}
Where should I put this, instead of vendor file ofc?
Thanks
from Newest questions tagged laravel-5 - Stack Overflow http://bit.ly/2rVCXuH
via IFTTT
Aucun commentaire:
Enregistrer un commentaire