I don\'t know why it\'s still don\'t work and show this:
Illuminate\\Database\\QueryException : SQLSTATE[HY000]: General error: 1005 Can\'t create tabl
The problem here is that id_druhu in druh_knihies is defined as bigIncrements and you create doba as unsignedInteger and when using foreign key type should be exactly same. So in this case instead of
id_druhu
druh_knihies
bigIncrements
doba
unsignedInteger
$table->unsignedInteger('doba');
you should use
$table->unsignedBigInteger('doba');