Ejemplo: cómo usar el contenedor de servicios en laravel
use AppServicesTransistor;
$this->app->resolving(Transistor::class, function ($api, $app) {
// Called when container resolves objects of type "HelpSpotAPI"...
});
$this->app->resolving(function ($object, $app) {
// Called when container resolves object of any type...
});
¡Haz clic para puntuar esta entrada!
(Votos: 0 Promedio: 0)