📜  laravel bootstrap auth - PHP (1)

📅  最后修改于: 2023-12-03 14:43:44.726000             🧑  作者: Mango

Laravel Bootstrap Auth

Laravel Bootstrap Auth is a PHP package that provides boilerplate code for authentication in Laravel applications. It includes views and controllers that correspond to the standard Laravel authentication routes, but with Bootstrap styles applied.

Features
  • Bootstrap styles applied to Laravel authentication views
  • Login and register functionality out of the box
  • Easy customizability for further authentication needs
Installation

To install Laravel Bootstrap Auth, run the following command:

composer require peremohajohn/laravel-bootstrap-auth

Then, publish the package's views and controllers:

php artisan vendor:publish --tag=laravel-bootstrap-auth

Next, run the migrations for the users table:

php artisan migrate

Finally, add the following line to your routes/web.php file:

Auth::routes();
Usage

Laravel Bootstrap Auth provides the standard Laravel authentication routes with Bootstrap styles applied. You can access these routes by going to /login and /register.

If you need to customize the authentication functionality, you can extend the provided controllers and views. For example, to add a field to the registration form, you can edit the register.blade.php view and RegisterController controller.

Conclusion

Laravel Bootstrap Auth is a simple package that provides a quick and easy way to add authentication functionality to your Laravel application with Bootstrap styles applied. By extending the provided views and controllers, you can easily customize the authentication functionality to better fit your needs.