<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: mkfizi</title>
    <description>The latest articles on DEV Community by mkfizi (@mkfizi).</description>
    <link>https://dev.to/mkfizi</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F450325%2F26255bfa-d325-4dd8-9300-dc2c932377fb.png</url>
      <title>DEV Community: mkfizi</title>
      <link>https://dev.to/mkfizi</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mkfizi"/>
    <language>en</language>
    <item>
      <title>Forstrap: Laravel 8 Fortify with Bootstrap 5 Scaffolding</title>
      <dc:creator>mkfizi</dc:creator>
      <pubDate>Tue, 25 May 2021 10:33:16 +0000</pubDate>
      <link>https://dev.to/mkfizi/forstrap-laravel-8-fortify-with-bootstrap-5-scaffolding-468h</link>
      <guid>https://dev.to/mkfizi/forstrap-laravel-8-fortify-with-bootstrap-5-scaffolding-468h</guid>
      <description>&lt;h1&gt;
  
  
  Introduction
&lt;/h1&gt;

&lt;p&gt;I've made plenty of web applications using Laravel stylized with Bootstrap and most of them requires user authentication features. Since Laravel favors Tailwind for stylization in it's out of the box packages these days, I figured I need to create a scaffolding in order to quick start my next project complete with user authentication. And this is where Forstrap comes in.&lt;/p&gt;

&lt;h1&gt;
  
  
  Forstrap
&lt;/h1&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  How To Use This?
&lt;/h2&gt;

&lt;p&gt;Run this command below where app is the folder you want to create your project with.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;composer create-project mkfizi/forstrap app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run this command after you change your &lt;strong&gt;.env&lt;/strong&gt; file&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;php artisan migrate 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's it! Your new app is now ready with authentication features&lt;/p&gt;

&lt;h3&gt;
  
  
  Email Configuration
&lt;/h3&gt;

&lt;p&gt;In order to experience the complete Laravel Fortify and Forstrap authentication features, you must set your email configuration in &lt;strong&gt;.env&lt;/strong&gt; file. You may use &lt;a href="https://mailtrap.io/"&gt;mailtrap.io&lt;/a&gt; for development purpose and use it's SMTP integration codes in your &lt;strong&gt;.env&lt;/strong&gt; file.&lt;/p&gt;

&lt;h2&gt;
  
  
  Extended Feature
&lt;/h2&gt;

&lt;p&gt;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.&lt;/p&gt;

&lt;h3&gt;
  
  
  Folder Structure
&lt;/h3&gt;

&lt;p&gt;The files for this feature can be located in these folders&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;App/
|--Http/
|  |--Controllers
|     |--EmailController.php
|--Mail/
   |--TwoFactorRecoveryCodes.php
Resources/
|--Views/
   |--Emails/
      |--two-factor-recovery-codes.blade.php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Route
&lt;/h3&gt;

&lt;p&gt;The route for this feature can be located in web.php with this line&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Route::post('/user/two-factor-recovery-codes/email', 'App\Http\Controllers\EmailController@sendTwoFactorRecoveryCodes')-&amp;gt;name('two-factor-recovery-codes.send');
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You may check out Forstrap's github repository &lt;a href="https://github.com/mkfizi/forstrap"&gt;here&lt;/a&gt;&lt;/p&gt;

&lt;h1&gt;
  
  
  Future Updates &amp;amp; Recommendations
&lt;/h1&gt;

&lt;p&gt;I am thinking of including more features that's authentication related such as SMS verification or a One Time Password verification. But I couldn't find a free solution without a paid options. Also, I intended to include QR Code email recovery but I found out that most of the email providers doesn't do well with svg codes. Let me know if you have any ideas or a new feature idea I should include in comment below.&lt;/p&gt;

</description>
      <category>laravel</category>
      <category>php</category>
      <category>bootstrap</category>
      <category>fortify</category>
    </item>
  </channel>
</rss>
