Laravel Splade provides a seamless integration with Laravel Breeze, the minimal authentication starter kit for Laravel. Here's how they work together:
Authentication with Laravel Splade and Breeze
The `protonemedia/laravel-splade-breeze` package is a fork of the Laravel Breeze starter kit that has been adapted to work with Laravel Splade. This allows you to use the simplicity and familiarity of Blade templates to build your authentication flows, while still benefiting from the power and interactivity of Splade's SPA features.
The installation process is similar to the standard Laravel Breeze setup, but with the addition of the Splade package:
bash
laravel new example-app
cd example-app
composer require protonemedia/laravel-splade-breeze
php artisan breeze:install
This will give you a pre-built authentication system, including login, registration, password reset, email verification, and password confirmation, all powered by Splade's SPA capabilities.[1][2][3]
Authorization with Laravel Splade
In addition to authentication, Laravel Splade also integrates seamlessly with Laravel's built-in authorization system. You can use the `@can` and `@cannot` Blade directives to conditionally render content based on the user's permissions.[1]
This allows you to easily secure your SPA without the need for additional setup or configuration, by leveraging the same authorization logic you would use in a traditional Laravel application.
Overall, the combination of Laravel Splade and Breeze provides a powerful and streamlined way to build authenticated, authorized Single Page Applications using the familiar Blade syntax and Laravel's robust authentication and authorization features.[4]
Citations:[1] https://splade.dev/docs/breeze
[2] https://github.com/protonemedia/laravel-splade-breeze
[3] https://packagist.org/packages/protonemedia/laravel-splade-breeze
[4] https://laracasts.com/discuss/channels/laravel/laravel-breeze-or-laravel-jetstream-or-manual-authentication
[5] https://github.com/protonemedia/laravel-splade-breeze/blob/1.x-splade/composer.json