for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace CleaniqueCoders\Profile\Models;
use CleaniqueCoders\Traitify\Concerns\InteractsWithUuid;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
use Illuminate\Database\Eloquent\Relations\MorphTo;
class BankAccount extends Model
{
use InteractsWithUuid;
CleaniqueCoders\Traitify...cerns\InteractsWithUuid
$uuid_column
CleaniqueCoders\Profile\Models\BankAccount
protected $guarded = [
'id',
];
/**
* Bank.
*/
public function bank(): BelongsTo
return $this->belongsTo(Bank::class)->withDefault();
}
* Get all of the owning bank models.
public function bankable(): MorphTo
return $this->morphTo();
* Get Bank Name via Accessor.
public function getBankNameAttribute(): string
return $this->bank->name;
name
CleaniqueCoders\Profile\Models\Bank
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.