PHP code example of jamesyps / laravel-myriad

1. Go to this page and download the library: Download jamesyps/laravel-myriad 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/ */

    

jamesyps / laravel-myriad example snippets


[
    'model' => \App\Components\Models\Component::class,
    'repository' => \App\Components\Repositories\ComponentRepository::class,
]

php artisan vendor:publish --tag myriad-assets
blade
<button class="btn btn-{{ $type ?? 'default'}}">
	{{ $slot }}
</button>
blade
{{--

---
slots:
    - default: My Button
variables:
    - type: primary
---

--}}

<button class="btn btn-{{ $type ?? 'default'}}">
	{{ $slot }}
</button>

php artisan vendor:publish --tag myriad-config

php artisan vendor:publish --tag myriad-views