Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel dependency injection

<?php

class Service
{
    //
}r

Route::get('/', function (Service $service) {
    die(get_class($service));
});
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #laravel #dependency #injection
ADD COMMENT
Topic
Name
5+5 =