Get support for joshhanley/livewire-package-demo
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
joshhanley/livewire-package-demo
Livewire Package Demo
This is a demonstration of how you can create a package which contains Livewire components, and test them using Livewire Dusk Testbench.
The Components
This demo contains two different types of Livewire components:
- Counter Component
- Custom Input
The counter component, is a standard Livewire component which has both the component class and the required blade view. It's files can be found in src/CounterComponent.php
and resources/views/livewire/counter-component.blade.php
The custom input, is a blade component which makes use of Livewire features (such as wire:model) which only has a blade view.
The Tests
There are a couple of different tests in the package which show how you could test your components to ensure they are working as expected.
The tests are in tests/Browser
under three different folders:
- Counter
- ComponentWithCounter
- ComponentWithCustomInput
The Counter
test folder contains an example of how you could test your component in isolation, to test all it's functionality.
The ComponentWithCounter
test folder contains an example of using the Counter Component
inside another component and testing that works as expected.
The ComponentWithCustomInput
test folder contains an example of using the Custom Input
blade component inside a Livewire component to test it operates as expected.
Further Information
For any information on how to use Livewire Dusk Testbench or anything it uses, or creative packages, consult the relevant documentation.
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2