Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

add method to laravel blade

use IlluminateSupportFacadesBlade;

/**
 * Bootstrap any application services.
 *
 * @return void
 */
public function boot()
{
    Blade::if('disk', function ($value) {
        return config('filesystems.default') === $value;
    });
}
Source by laravel.com #
 
PREVIOUS NEXT
Tagged: #add #method #laravel #blade
ADD COMMENT
Topic
Name
2+6 =