message); $event_class = 'App\Events\\'.enum('tables.'.$message->data->table_name.'.singular_name').enum('cruds.inverse.'.$message->data->crud_id.'.name'); if (class_exists($event_class)) { // event(new ('App\Events\\'.$event_class($message))); $event_class::dispatch($message); } } }