- Convert class references from strings to static ::class constants built-in to PHP for improved code completion and static analysis.
- Replace Facade references using the global namespace with their FQCN for improved code completion and static analysis. - delete database\factories\PageFactory.php and app\services\Registrar.php
This commit is contained in:
parent
c4d74ca631
commit
1b2e77d907
12 changed files with 32 additions and 88 deletions
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Dataset;
|
||||
|
@ -6,7 +7,6 @@ use Illuminate\Database\Eloquent\Model;
|
|||
|
||||
class Person extends Model
|
||||
{
|
||||
|
||||
protected $fillable = [
|
||||
'academic_title',
|
||||
'date_of_birth',
|
||||
|
@ -15,10 +15,13 @@ class Person extends Model
|
|||
'email',
|
||||
'identifier_orcid',
|
||||
'status',
|
||||
'name_type'
|
||||
'name_type',
|
||||
];
|
||||
|
||||
protected $table = 'persons';
|
||||
|
||||
public $timestamps = false;
|
||||
|
||||
protected $appends = ['full_name'];
|
||||
|
||||
public function documents()
|
||||
|
@ -39,7 +42,7 @@ class Person extends Model
|
|||
*/
|
||||
public function getFullNameAttribute()
|
||||
{
|
||||
return $this->first_name . " " . $this->last_name . " " . $this->date_of_birth;
|
||||
return $this->first_name.' '.$this->last_name.' '.$this->date_of_birth;
|
||||
}
|
||||
|
||||
public function scopeActive($query)
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue