restructured models directory and namespaces to include an extra directory for sorting

This commit is contained in:
2018-12-01 21:46:04 -06:00
parent 5c073d85ee
commit 67e606ad54
38 changed files with 168 additions and 58 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
namespace App\Models\Esi;
use Illuminate\Database\Eloquent\Model;
class EsiToken extends Model
{
// Table Name
protected $table = 'EsiTokens';
//Primary Key
public $primaryKey = 'id';
// Timestamps
public $timestamps = true;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'access_token',
'refresh_token',
'expires_in',
];
public function esiscopes() {
return $this->hasMany('App\Models\EsiScope', 'character_id', 'character_id');
}
}