tooinfinity/breeze-module

Minimal Laravel authentication scaffolding with Blade and Tailwind.

1.0.0 2024-08-11 20:31 UTC

This package is auto-updated.

Last update: 2025-02-08 20:16:57 UTC


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',