예제 #1
0
 public function createBatch(array $attributes)
 {
     return Batch::create($attributes);
 }
예제 #2
0
 public function getBatchAttribute()
 {
     if ($row = $this->currentClassRow()) {
         return Batch::findOrFail($row->batch_id);
     }
 }