PHPackages                             davidecariola/scaffolding-fortify-bootstrap - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. davidecariola/scaffolding-fortify-bootstrap

ActiveLibrary[Framework](/categories/framework)

davidecariola/scaffolding-fortify-bootstrap
===========================================

Automatically creates a Laravel 8 scaffolding with Laravel/Fortify and Bootstrap 5

048Blade

Since Sep 27Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Davide-Cariola/Scaffolding-Fortify-Bootstrap-5)[ Packagist](https://packagist.org/packages/davidecariola/scaffolding-fortify-bootstrap)[ RSS](/packages/davidecariola-scaffolding-fortify-bootstrap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Scaffolding Fortify Bootstrap
=============================

[](#scaffolding-fortify-bootstrap)

[Latest version on Packagist](https://packagist.org/packages/davidecariola/scaffolding-fortify-bootstrap)

This package was created to allow developers to focus on the code that really matters. Installing Laravel Fortify and Bootstrap 5 can take a long time and many steps which, with this package, are reduced to a simple line of code. Just install Scaffolding Fortify Bootstrap and you're ready to code right away!

Specifically, it will:

- install Laravel/Fortify Package
- install Laravel/Socialite Package
- install bootstrap 5, popperjs/core
- update resources/app.js and resources/app.css
- run npm install &amp;&amp; npm run dev
- create components folder in resources/views with layout file
- create auth folder in resources/views with login, register, forgot-password and reset-password files in it
- every user related view will already have a complete form with csrf token, methods, actions, validation errors and session messages
- create a controller named SocialiteController which manages authentication with Google

Requirements
------------

[](#requirements)

- PHP &gt;= 8.0.0
- Laravel &gt;= 8.0.0

Installation
------------

[](#installation)

To get started, install package using composer:

```
composer require davidecariola/scaffolding-fortify-bootstrap
```

Next, run install artisan command to publish scaffolding:

```
php artisan sfb:install
```

Publish Laravel Fortify:

```
php artisan vendor:publish --provider="Laravel\Fortify\FortifyServiceProvider"
```

Add in config/app.php, in providers\[\] array:

```
App\Providers\FortifyServiceProvider::class,
Laravel\Socialite\SocialiteServiceProvider::class,
```

Add in config/app.php, in aliases\[\] array:

```
'Socialite' => Laravel\Socialite\Facades\Socialite::class,
```

Make sure the following are enabled in config\\fortify.php, in features\[\]:

```
Features::registration(),
Features::resetPasswords(),
Features::updateProfileInformation(),
Features::updatePasswords(),
Features::twoFactorAuthentication([
        'confirmPassword' => true,
]),
```

Add in app\\Providers\\FortifyServiceProvider, in boot() function:

```
Fortify::loginView(function () {
        return view('auth.login');
});

Fortify::registerView(function () {
        return view('auth.register');
});

Fortify::requestPasswordResetLinkView(function () {
        return view('auth.forgot-password');
});

Fortify::resetPasswordView(function ($request) {
        return view('auth.reset-password', ['request' => $request]);
});
```

Remember to update const HOME in app\\Providers\\RouteServiceProvider:

```
public const HOME = '/';
```

In .env file, link your smtp service (like [Mailtrap](https://mailtrap.io/)) and update sender.

In app\\config\\services.php, update google\[\] with your identification data.

In .env file, insert the same google keys you inserted in services.php:

```
GOOGLE_CLIENT_ID=YOUR_GOOGLE_CLIENT_ID
GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET
GOOGLE_REDIRECT=http://localhost:8000/callback
```

After creating the database, create a new migration to add google\_id field in the users table:

```
php artisan make:migration add_google_id_column_to_users_table
```

Then proceed to set 'google\_id' as a string in the migration.

Add 'google\_id' in app\\Models\\User, in fillable\[\].

When you're ready:

```
php artisan migrate
```

Build something amazing!!

Usage
-----

[](#usage)

Just install this package and begin coding without worries!

What's next?
------------

[](#whats-next)

I will cover every Laravel/Fortify possibility, like TwoFactorAuthentication.

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](https://choosealicense.com/licenses/mit/)

Credits
-------

[](#credits)

Thanks to Leonardo De Candia and Roberto Russo for awesome support!

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/45707b758c011d521a4348277037cba4f674609a3a632c1e05e8fa64a594f9e8?d=identicon)[Davide-Cariola](/maintainers/Davide-Cariola)

---

Top Contributors

[![Davide-Cariola](https://avatars.githubusercontent.com/u/83959657?v=4)](https://github.com/Davide-Cariola "Davide-Cariola (14 commits)")

### Embed Badge

![Health badge](/badges/davidecariola-scaffolding-fortify-bootstrap/health.svg)

```
[![Health](https://phpackages.com/badges/davidecariola-scaffolding-fortify-bootstrap/health.svg)](https://phpackages.com/packages/davidecariola-scaffolding-fortify-bootstrap)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
