{"id":18275975,"url":"https://github.com/steelants/livewire-modal","last_synced_at":"2025-10-17T12:52:29.848Z","repository":{"id":195960761,"uuid":"694040535","full_name":"steelants/Livewire-Modal","owner":"steelants","description":null,"archived":false,"fork":false,"pushed_at":"2024-04-09T14:26:38.000Z","size":30,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2024-05-09T23:41:58.526Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/steelants.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-20T08:02:47.000Z","updated_at":"2024-08-09T20:14:51.899Z","dependencies_parsed_at":"2023-11-15T18:25:39.522Z","dependency_job_id":"3524a906-00dc-4ca8-8121-6c2b7fa3f4a0","html_url":"https://github.com/steelants/Livewire-Modal","commit_stats":null,"previous_names":["steelants/livewire-modal"],"tags_count":26,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelants%2FLivewire-Modal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelants%2FLivewire-Modal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelants%2FLivewire-Modal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelants%2FLivewire-Modal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steelants","download_url":"https://codeload.github.com/steelants/Livewire-Modal/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247974732,"owners_count":21026742,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-05T12:14:37.461Z","updated_at":"2025-10-17T12:52:29.792Z","avatar_url":"https://github.com/steelants.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Livewire Modal\n\nPackage for opening any Livewire component inside modal. Powered by Livewire 3 and Bootstrap 5.\n\n### Created by: [SteelAnts s.r.o.](https://www.steelants.cz/)\n\n[![Total Downloads](https://img.shields.io/packagist/dt/steelants/modal.svg?style=flat-square)](https://packagist.org/packages/steelants/modal)\n\n## Usage\n\n### Include modal in layout\n```blade\n@livewire('modal-basic', key('modal'))\n```\n\n### Opening modal from blade or JavaScript\n```html\n\u003cbutton onclick=\"Livewire.dispatch('openModal', {livewireComponents: 'livewire-component-name', title: 'Modal title', parameters: [...]})\"\u003eOpen modal\u003c/button\u003e\n```\n\n### Opening modal from component\n```php\n$this-\u003edispatch('openModal', 'livewire-component-name', 'Modal title', $componentParameters)\n```\n\n## openModal parameters\n```php\n/**\n * Open modal\n *\n * @param string|Array $livewireComponents Component name, can be array\n * @param string $title Modal title\n * @param array $parameters Component parameters\n * @return void\n */\npublic function openModal($livewireComponents, $title = \"\", $parameters = [])\n```\n\n## Example\n```html\n\u003cbutton onclick=\"Livewire.dispatch('openModal', {livewireComponents: 'user-form', title:  'Create user'})\"\u003eCreate User\u003c/button\u003e\n\n\u003cbutton onclick=\"Livewire.dispatch('openModal', {livewireComponents: 'user-form', title: 'Edit user', parameters: ['user' =\u003e $userId]})\"\u003eEdit User\u003c/button\u003e\n```\n\n```php\nuse Livewire\\Component;\n\nclass UserForm extends Component\n{\n  public function mount(User $user)\n  {\n    $this-\u003euser = $user;\n  }\n}\n```\n\n\n## Contributors\n\u003ca href=\"https://github.com/steelants/livewire-modal/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=steelants/livewire-modal\" /\u003e\n\u003c/a\u003e\n\n## Other Packages\n[steelants/laravel-auth](https://github.com/steelants/laravel-auth)\n[steelants/laravel-boilerplate](https://github.com/steelants/Laravel-Boilerplate)\n[steelants/datatable](https://github.com/steelants/Livewire-DataTable)\n[steelants/form](https://github.com/steelants/Laravel-Form)\n[steelants/modal](https://github.com/steelants/Livewire-Modal)\n[steelants/laravel-tenant](https://github.com/steelants/Laravel-Tenant)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelants%2Flivewire-modal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteelants%2Flivewire-modal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelants%2Flivewire-modal/lists"}