PHP code example of devmi / laraconfirm

1. Go to this page and download the library: Download devmi/laraconfirm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

devmi / laraconfirm example snippets


'providers' => [
    Devmi\Laraconfirm\LaraconfirmServiceProvider::class,
];

use AuthenticatesUsers;
// By
use LaraconfirmLoginTrait;

use RegistersUsers;
// By
use LaraconfirmRegisterTrait;

use ResetsPasswords;
// By
use LaraconfirmResetsPasswordsTrait;

// resources\views\auth\login.blade.php

@if (session('laraconfirmAlert'))
  <div class="alert alert-info">
    {!! session('laraconfirmAlert') !!}
  </div>
@endif
// above the login form or anywhere you want
// the form is here below
...

bash
php artisan migrate