You have two options: Serviceor Service Provider.
Service
This class can work as an assistant having all its static methods. For example, in the Application / Services folder, you can create a new one:
<?php
namespace Myapp\Services;
class DateHelper{
public static function niceFormat(){
return "This is a nice format";
}
}
config/app.php :
'DateHelper' => 'Myapp\Services\DateHelper'
niceFormat(), \DateFormat::niceFormat();
, , , docs Facade.