Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel eloquent multiple primary key

protected $primaryKey = ['user_id', 'stock_id'];
public $incrementing = false;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #laravel #eloquent #multiple #primary #key
ADD COMMENT
Topic
Name
6+7 =