This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Prevent direct file access | |
defined( 'ABSPATH' ) || exit; | |
use ElementorPro\Modules\DynamicTags\Tags\Base\Tag; | |
use ElementorPro\Modules\DynamicTags\ACF\Module; | |
class ACF_Font_Awesome extends Tag | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Illuminate\Support\Facades\File; | |
function getAllModels(): array | |
{ | |
$composer = json_decode(file_get_contents(base_path('composer.json')), true); | |
$models = []; | |
foreach ((array)data_get($composer, 'autoload.psr-4') as $namespace => $path) { | |
$models = array_merge(collect(File::allFiles(base_path($path))) |