PHP Classes

File: examples/views/Test/inject.blade.php

Recommend this page to a friend!
  Classes of Jorge Castro   BladeOne   examples/views/Test/inject.blade.php   Download  
File: examples/views/Test/inject.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: BladeOne
Standalone template engine that compiles into PHP
Author: By
Last change: Update of examples/views/Test/inject.blade.php
Date: 3 years ago
Size: 331 bytes
 

Contents

Class file image Download
@set($x1=20)
Injection:<hr>
@inject("metric" , 'App\Services\MetricsService')
@inject("simpleclass" ,'')
<hr>
<div>
    Monthly Revenue: {{ $metric->monthlyRevenue() }}.
</div>
<div>
    Ping: {{ $simpleclass->ping('pong!') }}.
</div>


@inject("simpleclass" )

<div>
    Ping Again: {{ $simpleclass->ping('pong again!') }}.
</div>