Skip to content

How to listen to modal close event #1684

Closed Answered by suraj-webkul
aldoemir asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @aldoemir,

If the current modal blade component does not fully meet your requirements, you can override the modal by following these steps:

  1. Navigate to your package's service provider and add the following to the boot method:

    /**
     * Bootstrap any application services.
     */
    public function boot(Router $router): void
    {
        // ...
        $this->publishes([
            __DIR__.'/../Resources/views/components/modal/index.blade.php' => resource_path('views/vendor/admin/components/modal/index.blade.php'),
        ], 'public');
    }

This will allow you to customize the modal by publishing the relevant Blade component to your application's resources.

The remaining required changes will be included in a…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@suraj-webkul
Comment options

@aldoemir
Comment options

@aldoemir
Comment options

@suraj-webkul
Comment options

Answer selected by devansh-webkul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants