Download the PHP package protonemedia/inertiajs-events-laravel-dusk without Composer
On this page you can find all versions of the php package protonemedia/inertiajs-events-laravel-dusk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download protonemedia/inertiajs-events-laravel-dusk
More information about protonemedia/inertiajs-events-laravel-dusk
Files in protonemedia/inertiajs-events-laravel-dusk
Package inertiajs-events-laravel-dusk
Short Description Inertia.js Events for Laravel Dusk
License MIT
Homepage https://github.com/protonemedia/inertiajs-events-laravel-dusk
Informations about the package inertiajs-events-laravel-dusk
Warning: Like the Tables package, I've decided to archive this repository as I've moved away from Inertia.js to focus on Splade and Eddy 🔥
Inertia.js Events for Laravel Dusk
Requirements
- PHP 7.4+
- Vue
- Laravel 8.0 and 9.0
Support this package!
❤️ We proudly support the community by developing Laravel packages and giving them away for free. If this package saves you time or if you're relying on it professionally, please consider sponsoring the maintenance and development. Keeping track of issues and pull requests takes time, but we're happy to help!
Laravel Splade
Did you hear about Laravel Splade? 🤩
It's the magic of Inertia.js with the simplicity of Blade. Splade provides a super easy way to build Single Page Applications using Blade templates. Besides that magic SPA-feeling, it comes with more than ten components to sparkle your app and make it interactive, all without ever leaving Blade.
Blogpost
If you want to know more about the background of this package, please read the blogpost: A package for Laravel Dusk to wait for Inertia.js events
Installation
You can install the package via composer:
Add the inertiaEventsCount
object to your main JavaScript file, somewhere above the creation of the Vue application instance.
In the creation of the Vue application instance, use the mounted
method to register the event listeners.
Usage
This package provides three helper methods for your Laravel Dusk tests.
Error
The waitForInertiaError()
method may be used to wait until the Error event is fired. You can use it to assert against responses where validation errors are returned.
Navigate
The waitForInertiaNavigate()
method may be used to wait until the Navigate event is fired. You can use it to assert a user is redirected, for example, after submitting a form.
Success
The waitForInertiaSuccess()
method may be used to wait until the Success event is fired. This is great for testing forms that don't redirect after successfully submitting a form.
Example test
Testing
Changelog
Please see CHANGELOG for more information about what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Other Laravel packages
Laravel Analytics Event Tracking
: Laravel package to easily send events to Google Analytics.Laravel Blade On Demand
: Laravel package to compile Blade templates in memory.Laravel Cross Eloquent Search
: Laravel package to search through multiple Eloquent models.Laravel Eloquent Scope as Select
: Stop duplicating your Eloquent query scopes and constraints in PHP. This package lets you re-use your query scopes and constraints by adding them as a subquery.Laravel Eloquent Where Not
: This Laravel package allows you to flip/invert an Eloquent scope, or really any query constraint.Laravel FFMpeg
: This package provides an integration with FFmpeg for Laravel. The storage of the files is handled by Laravel's Filesystem.Laravel Form Components
: Blade components to rapidly build forms with Tailwind CSS Custom Forms and Bootstrap 4. Supports validation, model binding, default values, translations, includes default vendor styling and fully customizable!Laravel Paddle
: Paddle.com API integration for Laravel with support for webhooks/events.Laravel Verify New Email
: This package adds support for verifying new email addresses: when a user updates its email address, it won't replace the old one until the new one is verified.Laravel WebDAV
: WebDAV driver for Laravel's Filesystem.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Pascal Baljet
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
Treeware
This package is Treeware. If you use it in production, then we ask that you buy the world a tree to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.
All versions of inertiajs-events-laravel-dusk with dependencies
illuminate/support Version ^9.0|^10.0
laravel/dusk Version ^6.15|^7.0
nesbot/carbon Version ^2.66