PHP code example of uzbek / laravel-attribute-scanner
1. Go to this page and download the library: Download uzbek/laravel-attribute-scanner 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/ */
uzbek / laravel-attribute-scanner example snippets
)
[//]: # (return [)
[//]: # (];)
[//]: # (
use Uzbek\LaravelAttributeScanner\Facades\AttributeScanner;
$attributes = AttributeScanner::getAttributes(asArray: true);
// or
use Uzbek\LaravelAttributeScanner\LaravelAttributeScanner;
$scanner = new LaravelAttributeScanner(directories: ['app/Models', 'app/Http/Controllers']);
$attributes = $scanner->getAttributes();