tooinfinity / breeze-module
Minimal Laravel authentication scaffolding with Blade and Tailwind.
1.0.0
2024-08-11 20:31 UTC
Requires
- php: ^8.2.0
- composer-runtime-api: ^2.0
- illuminate/console: ^11.0
- illuminate/filesystem: ^11.0
- illuminate/support: ^11.0
- illuminate/validation: ^11.0
- symfony/console: ^7.0
Requires (Dev)
- orchestra/testbench: ^9.0
- phpstan/phpstan: ^1.10
README
know this an issue with this 'Unable to locate a class or view for component [auth:guest-layout]' and also 'Unable to locate a class or view for component [auth:app-layout]' this is a simple fix go to AppServiceProvider.php and register these components on the boot method
public function boot(): void
{
Blade::component('auth::guest-layout', GuestLayout::class);
Blade::component('auth::app-layout', AppLayout::class);
}
to install this package run
composer require tooinfinity/breeze-module:dev-main --dev
and this package require laravel module package to install it run
composer require nwidart/laravel-modules
after that run this commands
php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"
By default the module classes are not loaded automatically. You can autoload your modules using psr-4. For example :
"extra": {
"laravel": {
"dont-discover": []
},
"merge-plugin": {
"include": [
"Modules/*/composer.json"
]
}
},
Tip: don't forget to run composer dump-autoload afterwards
composer dump-autoload
php artisan module:make Auth
to create auth API run this
php artisan breeze:install
and choose from the following
'blade' => 'Blade with Alpine',
'livewire' => 'Livewire (Volt Class API) with Alpine',
'livewire-functional' => 'Livewire (Volt Functional API) with Alpine',
'react' => 'React with Inertia',
'vue' => 'Vue with Inertia',
'api' => 'API only',
'module-api' => 'laravel modules API only',
'module-blade' => 'laravel modules Blade with Alpine',