A
A
Alexander Koregin2020-09-01 21:28:25
Laravel
Alexander Koregin, 2020-09-01 21:28:25

Why does it break when adding a product to Voyager?

I created a table, created Bread and went to the Products tab, everything works fine, but when I add a new product, an error appears.

5f4e92c176a91659847407.png

How can I fix it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexander Koregin, 2020-09-01
@dragonika8

protected $primaryKey = 'product_id';

T
Therapyx, 2015-07-31
@myels

Here you go) Sorry for the colors, it's not important here, the colors are on your conscience))
https://jsfiddle.net/buh9uaj3/19/
key:

li:hover
{
    background-color:#ff0000;
    border-top: 2px solid blue;
    border-bottom: 2px solid blue;
}

B
Bohdan Stadnyk, 2015-07-31
@Humble_Beck

Use before and after pseudo-elements.

K
Kjuri, 2015-07-31
@Kjuri

set the top and bottom borders (this is light gray) and height to the outer ul block, and height to the inner elements equal to the outer +4px, position:relative;margin-top:-2px. And also set box-sizing: border-box so that it doesn’t jump when borders appear

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question