-
app/Providers/DashboardComponentsServiceProvider.php
Open in GitHubuse Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Blade; use App\Helpers\FileUpload\UploadComponents; class DashboardComponentsServiceProvider extends ServiceProvider { // public function boot() { Blade::directive('uploadForm', function () { $component = UploadComponents::getUploadForm(); $html = '<?php echo \'' . $component . '\'; ?>'; return ('<?php echo "' . $component . '"; ?>'); }); } }
-
config/app.php
Open in GitHubreturn [ // 'providers' => [ // App\Providers\DashboardComponentsServiceProvider::class, // ], // ];