mkfizi/forstrap

Laravel 8 authentication boilerplate using Laravel Fortify package and stylized with Bootstrap 5 CSS framework.

Installs: 139

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 1

Forks: 3

Open Issues: 0

Type:project

1.0.0 2021-05-25 09:58 UTC

This package is auto-updated.

Last update: 2024-03-29 04:39:36 UTC


README

Forstrap is a Laravel 8 authentication boilerplate using Fortify package and stylized with Bootstrap 5 CSS framework without the complexity of Jetstream and TailwindCSS and extends Laravel Fortify base features.

How To Use This?

Run this command below where app is the folder you want to create your project with.

composer create-project mkfizi/forstrap app

Run this command after you change your .env file

php artisan migrate

That's it! Your new app is now ready with authentication features

Email Configuration

In order to experience the complete Laravel Fortify and Forstrap authentication features, you must set your email configuration in .env file. You may use mailtrap.io for development purpose and use it's SMTP integration codes in your .env file.

Extended Feature

Aside from the out of the box Fortify's authentication features, this boilerplate also came with an extended feature which enables the application to send the two factor recovery codes to user's email address.

Folder Structure

The files for this features can be located in these folders

App/
|--Http/
|  |--Controllers
|     |--EmailController.php
|--Mail/
   |--TwoFactorRecoveryCodes.php
Resources/
|--Views/
   |--Emails/
      |--two-factor-recovery-codes.blade.php

Route

The route for this feature can be located in web.php with this line

Route::post('/user/two-factor-recovery-codes/email', 'App\Http\Controllers\EmailController@sendTwoFactorRecoveryCodes')->name('two-factor-recovery-codes.send');