I think this might help you: http://laravel.com/docs/4.2/eloquent#working-with-pivot-tables
You can set additional fields on a pivot table (eg. fill_times, fill_qty) and specify the name of the pivot table in the relation (you have two tables so you need two separate relationships in your models:
public function rawmaterials() {
return $this->belongsToMany('Rawmaterial', 'institution_rawmaterial'); // the table name should not be needed here
}
public function rawmaterialsExtended() {
return $this->belongsToMany('Rawmaterial', 'institution_rawmaterial_extended')->withPivot('fill_times', 'fill_qty');
}
And ofcourse you need to set similar relations on your Intitution model.