|
|
@ -5,10 +5,10 @@ namespace App\Models; |
|
|
|
use App\Models\File; |
|
|
|
use App\Models\Model; |
|
|
|
use App\Models\SoftDeletes; |
|
|
|
use App\Models\ReportableRelation; |
|
|
|
use Illuminate\Validation\Rule; |
|
|
|
use Illuminate\Http\UploadedFile; |
|
|
|
use Spatie\MediaLibrary\HasMedia; |
|
|
|
use App\Models\ReportableRelation; |
|
|
|
use Illuminate\Support\Facades\Cache; |
|
|
|
use Spatie\MediaLibrary\InteractsWithMedia; |
|
|
|
use Spatie\MediaLibrary\MediaCollections\Models\Media; |
|
|
@ -27,7 +27,7 @@ class Business extends Model implements HasMedia |
|
|
|
|
|
|
|
protected $table = 'businesses'; |
|
|
|
|
|
|
|
protected $fillable = ['name', 'slug', 'wallet','files_volume','cache', 'color', 'description', 'has_avatar', 'calculated_at', 'users']; |
|
|
|
protected $fillable = ['name', 'slug', 'wallet','files_volume','cache', 'color', 'description', 'has_avatar', 'calculated_at', 'suspended_at', 'users']; |
|
|
|
|
|
|
|
protected $fillable_relations = [ |
|
|
|
'users' |
|
|
@ -43,6 +43,7 @@ class Business extends Model implements HasMedia |
|
|
|
protected $casts = [ |
|
|
|
'has_avatar' => 'boolean', |
|
|
|
'calculated_at' => 'datetime', |
|
|
|
'suspended_at' => 'datetime', |
|
|
|
'wallet' => 'integer', |
|
|
|
]; |
|
|
|
|
|
|
|