awais-vteams / laravel-crud-generator

Laravel CRUD Generator
https://packagist.org/packages/ibex/crud-generator
MIT License
568 stars 113 forks source link

bootstrap laravel ui #36

Open Haris-Technical-Solutions opened 1 week ago

Haris-Technical-Solutions commented 1 week ago

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 commented 1 week ago

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

awais-vteams commented 1 week ago

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

Haris-Technical-Solutions commented 1 week ago

thanks, waiting for the changes and invitation to collaboration