Skip to content

[Feature]: Auto discovered custom if statements Blade #405

Open
@ghabriel25

Description

@ghabriel25

Feature Description

Is there a way to link custom if statements Blade to where its declared? Like

@disk('s3')
    <div>.../<div>
@endisk

linked to

class BladeServiceProvider extends ServiceProvider
{
    public function boot(): void
    {
        Blade::if('disk', fn (string $value) => config('filesystems.default') === $value);
    }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions