for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Innoflash\Events\Models;
use FaithGen\SDK\Models\UuidModel;
use FaithGen\SDK\Traits\Relationships\Morphs\ImageableTrait;
use FaithGen\SDK\Traits\StorageTrait;
use Illuminate\Support\Str;
class Guest extends UuidModel
{
use ImageableTrait, StorageTrait;
protected $table = 'fg_guests';
protected $guarded = ['id'];
protected $hidden = [
'created_at',
'updated_at',
'event_id',
];
public function event()
return $this->belongsTo(Event::class);
}
public function getTitleAttribute($val)
return Str::title($val);
public function getNameAttribute($val)
public function getFileName()
return $this->image->name;
image
Innoflash\Events\Models\Guest
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.
public function filesDir()
return 'events';
public function getImageDimensions()
return [
0, 50,
Checks if undeclared accessed properties appear in database migrations and if the creating migration is correct.