$ User-> ID Pokaż 0 w Blade Laravel 8
Set $incrementing to false on your model.
public $incrementing = false;
The casts system checks if this is set to true, if it is, it will try to cast the the key field to an int.
Hassan Silkhi