SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'order clause'
"SQLSTATE[42S22]: Column not found: 1054 Unknown column 'created_at' in 'order clause' (SQL: select * from branches order by created_at desc limit 5 offset 0)"
The error seems pretty self explanatory. You don't have a created_at field in the branches table. If you're not using created_at or updated_at timestamp fields on that model, you can disable them with public $timestamps = false; in your model properties.
In Your Modal add the following for your relation withTimestamps();
example
class Article extends Model
{
// ........
public function categories()
{
return $this->belongsToMany('\App\Category')->withTimestamps();
}
// .......
}