PHP code example of okipa / laravel-html-helper
1. Go to this page and download the library: Download okipa/laravel-html-helper 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/ */
okipa / laravel-html-helper example snippets
blade
@php
$id = 17;
$fullScreen = false;
$darkMode = true;
@endphp
<div{{ html_classes(
['card', $id, 'text-left'],
$fullScreen ? 'full-screen' : null,
$darkMode ? ['bg-dark', 'text-white'] : null
) }}></div>