PHP code example of eslym / laravel-blade-utils
1. Go to this page and download the library: Download eslym/laravel-blade-utils library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
eslym / laravel-blade-utils example snippets
# bootstrap/app.php
...
$app->register(Eslym\BladeUtils\Providers\BladeUtilServiceProvider::class);
...
@json([$val1, $val2, $val3, $val4])
echo json_encode([$val1, $val2, $val3, $val4], 15, 512);
echo json_encode([$val1, $val2, $val3);
`xml
<directives>
...
<data directive="@js" injection="true" prefix="<?php __ide_blade_helper::js(" suffix="); ?>"/>
<data directive="@css" injection="true" prefix="<?php __ide_blade_helper::css(" suffix="); ?>"/>
<data directive="@img" injection="true" prefix="<?php __ide_blade_helper::img(" suffix="); ?>"/>
<data directive="@iif" injection="true" prefix="<?php __ide_blade_helper::iif(" suffix="); ?>"/>
<data directive="@meta" injection="true" prefix="<?php __ide_blade_helper::meta(" suffix="); ?>"/>
<data directive="@nameMeta" injection="true" prefix="<?php __ide_blade_helper::nameMeta(" suffix="); ?>"/>
<data directive="@propMeta" injection="true" prefix="<?php __ide_blade_helper::propMeta(" suffix="); ?>"/>
<data directive="@itemMeta" injection="true" prefix="<?php __ide_blade_helper::itemMeta(" suffix="); ?>"/>
</directives>