Exemplo n.º 1
0
 /**
  * Overwrite the parent boot method
  *
  * @return void
  */
 public static function boot()
 {
     parent::boot();
     PrintingLogSheet::creating(function ($printing_log_sheet) {
         $printing_log_sheet->created_by = Auth::user()->id;
         $printing_log_sheet->updated_by = Auth::user()->id;
     });
     PrintingLogSheet::updating(function ($printing_log_sheet) {
         $printing_log_sheet->updated_by = Auth::user()->id;
     });
 }