PHP code example of djl997 / blade-shortcuts

1. Go to this page and download the library: Download djl997/blade-shortcuts 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/ */

    

djl997 / blade-shortcuts example snippets

blade
@config('config-file.key') <!-- anything -->
blade
@cascadeFromHours([125, ['day' => 30]]) <!-- 4d 5h -->
blade
 $array = ['Tailwind', 'Alpine', 'Laravel', 'Livewire']; 
sh
php artisan vendor:publish --tag=blade-shortcuts-config