Example #1
0
 /**
  * @deprecated
  */
 public static function make($model, $message, $modelId = null)
 {
     History::create(['model' => $model, 'message' => $message, 'model_id' => $modelId, 'user_id' => Auth::user()->id]);
 }
Example #2
0
 /**
  * @param string $model
  * @param string $message
  * @param int|null $modelId
  */
 public function log($model, $message, $modelId = null)
 {
     History::create(['model' => $model, 'message' => $message, 'model_id' => $modelId, 'user_id' => $this->getCurrentUserId()]);
 }