Update Model.stub
Update Model.stub

custom Eloquent "$primaryKey" will be create with "id" or first field of the table for "--fromTable" option. Useful when you have a primary key different from "id".
edermartins/laravel-api-generator