mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Clean up Eloquent definitions
This commit is contained in:
@@ -14,22 +14,16 @@ namespace Flarum\Api;
|
||||
use Flarum\Database\AbstractModel;
|
||||
|
||||
/**
|
||||
* @property string $id
|
||||
* @property int $id
|
||||
* @property string $key
|
||||
* @property string|null $allowed_ips
|
||||
* @property string|null $scopes
|
||||
* @property int|null $user_id
|
||||
* @property \Carbon\Carbon $created_at
|
||||
* @property \Carbon\Carbon|null $last_activity_at
|
||||
*/
|
||||
class ApiKey extends AbstractModel
|
||||
{
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
protected $table = 'api_keys';
|
||||
|
||||
/**
|
||||
* Use a custom primary key for this model.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $incrementing = false;
|
||||
|
||||
/**
|
||||
* Generate an API key.
|
||||
*
|
||||
|
Reference in New Issue
Block a user