Answers for "add method to laravel blade"

PHP
-1

add method to laravel blade

use Illuminate\Support\Facades\Blade;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Blade::if('disk', function ($value) {
        return config('filesystems.default') === $value;
    });
}
Posted by: Guest on July-15-2021

Code answers related to "add method to laravel blade"

Browse Popular Code Answers by Language