Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Entities;
- use Illuminate\Database\Eloquent\Model;
- use Illuminate\Database\Eloquent\SoftDeletes;
- class ApiKey extends Model
- {
- use SoftDeletes;
- /**
- * The attributes that should be mutated to dates.
- * @var array
- */
- protected $dates = ['created_at', 'updated_at', 'deleted_at'];
- /**
- * The database table used by the model.
- * @var string
- */
- protected $table = 'api_keys';
- /**
- * The attributes that are mass assignable.
- * @var array
- */
- protected $fillable = [
- 'website',
- 'key',
- 'user_id',
- ];
- /*
- | ------------------------------------------------
- | Entity relationships
- | ------------------------------------------------
- | Place below all relationships
- |
- */
- public function user()
- {
- return $this->belongsTo('App\Entities\User');
- }
- /*
- | ------------------------------------------------
- | Entity exclusive methods
- | ------------------------------------------------
- | All methods based directly on Entity
- |
- */
- /*
- | ------------------------------------------------
- | Entity scopes
- | ------------------------------------------------
- | Query builder scopes
- |
- */
- /*
- | ------------------------------------------------
- | Entity attributes
- | ------------------------------------------------
- | The most used attributes of Recruitment Entity
- |
- */
- }
Add Comment
Please, Sign In to add comment