mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-26 14:04:17 +01:00
* phpstan v1 + workflow * Fix intend * More fixes * Update phpstan.neon * phpstan level 2 * Move errors ignoring into phpstan.neon * phpstan level 3 * Don't ignore templates folder * Something from level 4 * Update phpstan.neon
25 lines
418 B
PHP
25 lines
418 B
PHP
<?php
|
|
|
|
namespace MyAAC\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/**
|
|
* @property int $id
|
|
* @property int $type
|
|
* @property int $where
|
|
* @property string $body
|
|
* @property int $player_id
|
|
* @property int $date
|
|
*/
|
|
class Changelog extends Model {
|
|
|
|
protected $table = TABLE_PREFIX . 'changelog';
|
|
|
|
public $timestamps = false;
|
|
|
|
public function scopeIsPublic($query) {
|
|
$query->where('hide', '!=', 1);
|
|
}
|
|
}
|