Changeset View
Changeset View
Standalone View
Standalone View
src/app/Policy/RateLimit.php
- This file was added.
<?php | |||||
namespace App\Policy; | |||||
use Illuminate\Database\Eloquent\Model; | |||||
class RateLimit extends Model | |||||
{ | |||||
protected $fillable = [ | |||||
'user_id', | |||||
'owner_id', | |||||
'recipient_hash', | |||||
'recipient_count' | |||||
]; | |||||
protected $table = 'policy_ratelimit'; | |||||
machniak: We should add protected $keyType = 'bigint'; here. | |||||
public function owner() | |||||
{ | |||||
$this->belongsTo('App\User'); | |||||
} | |||||
public function user() | |||||
{ | |||||
$this->belongsTo('App\User'); | |||||
} | |||||
} | |||||
Done Inline ActionsCan be removed? mollekopf: Can be removed? | |||||
Done Inline ActionsCan be removed? mollekopf: Can be removed? | |||||
Done Inline ActionsCan be removed? mollekopf: Can be removed? |
We should add protected $keyType = 'bigint'; here.