Add photo management features, update database configuration, and enhance park model seeding

This commit is contained in:
pacnpal
2025-02-25 15:44:21 -05:00
parent 15b2d4ebcf
commit b4462ba89e
31 changed files with 2700 additions and 71 deletions

View File

@@ -8,7 +8,6 @@ use Illuminate\Support\Facades\DB;
class Location extends Model
{
use \Spatie\Activitylog\LogsActivity;
/**
* The attributes that are mass assignable.
@@ -41,7 +40,7 @@ class Location extends Model
* @var array<string, string>
*/
protected $casts = [
'coordinates' => 'point',
// 'coordinates' => 'point', // This cast is not available in Laravel by default
'latitude' => 'decimal:6',
'longitude' => 'decimal:6',
'elevation' => 'decimal:2',
@@ -51,23 +50,6 @@ class Location extends Model
'is_approximate' => 'boolean',
];
/**
* The attributes that should be logged.
*
* @var array
*/
protected static $logAttributes = [
'name',
'location_type',
'address',
'city',
'state',
'country',
'postal_code',
'coordinates',
'latitude',
'longitude',
];
/**
* Boot the model.