Laravel Generate Random Unique Number Example
<?php
namespace App\Http\Controllers;
class TestController extends Controller
{
/**
* Write code on Method
*
* @return response()
*/
public function index()
{
$randomNumber = random_int(1000, 9999);
dd($randomNumber);
}
}