laravel: eloquent example insert data to database
问题 I am sorry to ask this but I come from codeIgniter and have a really hard time understanding eloquent model insertion. This is a new way of working with models for me. i have read this article and understand some basics now. I have the following example. I have a product which has many attributes but the relevant one is brand and product name. (see the following example tables) products: id(PK),name,description,brand_id brands: id(PK),name Now here comes the problem. I know i can create a new