<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\Verifiesphones;

class VerificationController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | phone Verification Controller
    |--------------------------------------------------------------------------
    |
    | This controller is responsible for handling phone verification for any
    | user that recently registered with the application. phones may also
    | be re-sent if the user didn't receive the original phone message.
    |
    */

    use Verifiesphones;

    /**
     * Where to redirect users after verification.
     *
     * @var string
     */
    protected $redirectTo = '/home';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
        $this->middleware('signed')->only('verify');
        $this->middleware('throttle:6,1')->only('verify', 'resend');
    }
}
