Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

binding instances laravel

use AppServicesTransistor;
use AppServicesPodcastParser;
 
$service = new Transistor(new PodcastParser);
 
$this->app->instance(Transistor::class, $service);
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #binding #instances #laravel
ADD COMMENT
Topic
Name
3+5 =