Question: I’m working with my graduation project in Laravel, and want to generate small unique ID "9 char max" ... I don't need UUID because this will generate 36 char which is too long.

Answer: 
You can generate a random string with this library:

use Illuminate\Support\Str;

$id = Str::random(9);
You can use this ,

```
$unique_id= echo floor(time()-999999999);

```

this is generating a 9 digit unique value based on time.