PHP code example of intrfce / laravel-frontend-enums
1. Go to this page and download the library: Download intrfce/laravel-frontend-enums 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/ */
intrfce / laravel-frontend-enums example snippets
use Intrfce\LaravelFrontendEnums\Facades\PublishEnums;
PublishEnums::publish([
\App\Enums\MyEnum::class,
\App\Enums\MyOtherEnum::class,
])->toDirectory(resource_path('js/Enums'));