Add new version in repository

This commit is contained in:
Ludovic CANDELLIER
2021-07-25 23:19:27 +02:00
parent d174fe1c81
commit 0d421226fa
608 changed files with 12235 additions and 7513 deletions

View File

@@ -0,0 +1,32 @@
<?php
namespace App\Models\Core\Auth;
use Illuminate\Database\Eloquent\Model;
class UserStatus extends Model
{
protected $connection = 'mysql';
protected $guarded = [];
protected $table = "user_statuses";
public $timestamps = false;
public function scopeByName($query, $name)
{
return $query->where('name', $name);
}
public function scopeByTranslated($query, $translated)
{
return $query->where('translated', $translated);
}
public function scopeByNegociator($query)
{
return $query->where('negociator', '>', 0);
}
public function scopeActive($query)
{
return $query->where('active', 1);
}
}