Thats easy, Just add this to your model:
protected $primaryKey = 'article_id';
And your model should me something like this:
class Article extends \Eloquent {
protected $primaryKey = 'article_id';
protected $fillable = [];
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community