Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bootstrap laravel ui #36

Open
Haris-Technical-Solutions opened this issue Sep 11, 2024 · 3 comments
Open

bootstrap laravel ui #36

Haris-Technical-Solutions opened this issue Sep 11, 2024 · 3 comments

Comments

@Haris-Technical-Solutions

plz add true false check in config for

because we some time we ahve custome code in loginController and homeController laravel/ui --auth is regenerating the files and removing old code

$this->buildLayout();

protected function buildLayout(): void
{
if (! (view()->exists($this->layout))) {

        $this->info('Creating Layout ...');

        $uiPackage = match ($this->options['stack']) {
            'tailwind', 'livewire', 'react', 'vue' => 'laravel/breeze',
            default => 'laravel/ui'
        };

        if (! $this->requireComposerPackages([$uiPackage], true)) {
            throw new Exception("Unable to install $uiPackage. Please install it manually");
        }

        $uiCommand = match ($this->options['stack']) {
            'tailwind' => 'php artisan breeze:install blade',
            'livewire' => 'php artisan breeze:install livewire',
            'react' => 'php artisan breeze:install react',
            'vue' => 'php artisan breeze:install vue',
            default => 'php artisan ui bootstrap --auth'
        };

        $this->runCommands([$uiCommand]);
    }
}
@Haris-Technical-Solutions
Copy link
Author

or i wanted to be the collaborator in this project if possible

@awais-vteams
Copy link
Owner

@Haris-Technical-Solutions Yes sure. You can collaborate and I'll review the PR.

@Haris-Technical-Solutions
Copy link
Author

thanks, waiting for the changes and invitation to collaboration

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants