Edit File: ReportTrait.php
<?php namespace App\Traits; trait ReportTrait { public function saveReport($event) { $msg = trans('reports.event', ['name' => auth()->user()->name, 'event' => $event]); $this->reports()->create(['msg' => $msg]); } }
Back to File Manager