I have a product model and productpromotion model, product model will have many promotions, how can we save relation from productmodel resource ? Group::make() ->relationship('promotion') ->schema([ TextInput::make('promotion_label') ->label('Label'), TextInput::make('discount_percentage') ->label('Discount Percentage'), TextInput::make('base_price') ->label('Base Price'),
i ended up getting this error SQLSTATE[HY000]: General error: 1364 Field 'product_model_id' doesn't have a default value (Connection: mysql, SQL: insert into