📜  向 laravel 刀片添加方法 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:40.594000             🧑  作者: Mango

代码示例1
use Illuminate\Support\Facades\Blade;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Blade::if('disk', function ($value) {
        return config('filesystems.default') === $value;
    });
}