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 · 6 comments
Open

bootstrap laravel ui #36

Haris-Technical-Solutions opened this issue Sep 11, 2024 · 6 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

@poynet
Copy link

poynet commented Nov 25, 2024

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

Hi, I've been the same problem, because my value in config/crud.php - layout => "layouts.app" does'nt exist.
Check if the parameters is good ;)

Thanks for the creator of this generator :)

@awais-vteams
Copy link
Owner

Thanks for your messages. Feel free to contribute and I'll review it.

I'll update the code in the next release this week to solve this issue.

@poynet
Copy link

poynet commented Nov 25, 2024 via email

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

3 participants