-
app/Providers/ViewServiceProvider.php
Open in GitHubuse Illuminate\Support\Facades\Blade; use Illuminate\Support\ServiceProvider; class ViewServiceProvider extends ServiceProvider { public function boot() { Blade::directive('svg', function ($expression) { return "<?php echo svg({$expression}); ?>"; }); // } }
-
resources/views/front/pages/vacancies/partials/offer.blade.php
Open in GitHub// <ul class="bullets bullets-green"> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> A competitive salary package that can be tailored to your personal needs</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Health insurance</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Meal vouchers</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Eco vouchers</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Velo card for public bikes in Antwerp</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Laptop + 2<sup>nd</sup> screen, smartphone</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Internet at home</li> <li><span class="icon">{{ svg('icons/far-angle-right') }}</span> Bose noise-cancelling headphones</li> </ul> //
-
config/app.php
Open in GitHubreturn [ // 'providers' => [ // Illuminate\View\ViewServiceProvider::class, // ], // ];