https://github.com/tooinfinity/breeze-module
https://github.com/tooinfinity/breeze-module
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tooinfinity/breeze-module
- Owner: tooinfinity
- License: mit
- Created: 2024-08-05T23:24:23.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-08T19:58:45.000Z (over 1 year ago)
- Last Synced: 2025-01-04T21:03:44.047Z (over 1 year ago)
- Language: PHP
- Size: 255 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: .github/CODE_OF_CONDUCT.md
- Security: .github/SECURITY.md
- Support: .github/SUPPORT.md
Awesome Lists containing this project
README
# breeze-module
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',
```