### Run Database Migrations Source: https://devdojo.com/auth/docs/install Executes all pending database migrations to set up the necessary tables for DevDojo Auth. ```bash php artisan migrate ``` -------------------------------- ### Install DevDojo Auth Package Source: https://devdojo.com/auth/docs/install Installs the DevDojo Auth package into your Laravel project using Composer. ```bash composer require devdojo/auth ``` -------------------------------- ### Publish DevDojo Auth Assets and Configurations Source: https://devdojo.com/auth/docs/install Publishes assets, configuration files, CI workflow, and migrations for DevDojo Auth. ```bash php artisan vendor:publish --tag=auth:assets php artisan vendor:publish --tag=auth:config php artisan vendor:publish --tag=auth:ci php artisan vendor:publish --tag=auth:migrations ``` -------------------------------- ### Define Authorization Gate for Auth Setup Page Source: https://devdojo.com/auth/docs/setup-customizations This PHP code defines an authorization gate named 'viewAuthSetup' that allows a specific user (based on email) to access the authentication setup page. This is useful for production environments where direct access to the setup route might be restricted. ```php use Illuminate\Support\Facades\Gate; Gate::define('viewAuthSetup', function (\DevDojo\Auth\Models\User $user) { return in_array($user->email, [ 'tony@devdojo.com', ]); }); ``` -------------------------------- ### Extend DevDojo User Model Source: https://devdojo.com/auth/docs/install Demonstrates how to extend the DevDojo User model in your App\Models\User.php file to include 2FA and email verification functionalities. ```php