定制 redbastie/bootwire 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

redbastie/bootwire

Composer 安装命令:

composer require redbastie/bootwire

包简介

Laravel + Livewire + Bootstrap Auth UI.

README 文档

README

This package is no longer maintained. Please consider my latest package here: https://github.com/redbastie/tailwire

Bootwire

Bootwire is a replacement for the deprecated laravel/ui package. It uses Laravel + Livewire + Bootstrap. With a single command it will set you up with basic auth scaffolding for your next Laravel app. This includes login, registration, and password resets.

Installation

Require via composer:

composer require redbastie/bootwire

Install the package:

php artisan bootwire:install

This will create the livewire components inside of the app/Http/Livewire folder. All of the JS, SASS, and view files are created inside of your resources folder. It will also insert the auth routes, NPM packages, and update the webpack configuration file.

Customization

You can override any package trait method inside of your components.

For example, customizing the Register component:

class Register extends Component
{
    use RegistersUsers;
    
    public function rules()
    {
        return [
            'name' => ['required'],
            'email' => ['required', 'email', 'unique:users'],
            'password' => ['required', 'confirmed'],
            // add your new rules here
        ];
    }

    protected function createUser($validated)
    {
        return User::create([
            'name' => $validated['name'],
            'email' => $validated['email'],
            'password' => Hash::make($validated['password']),
            // add your new fields here
        ]);
    }
}

Just look at the package traits to see which methods you can override.

For all other customization, make any changes you want to the files created by this package.

统计信息

  • 总下载量: 77
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 11
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 11
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-10-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固