afce441001
Brought over the old form for adding new location to the db and the plugged everything back up using Laravel's eloquent orm (which is pretty fucking sweet) to re-active that process NOTE: larvel gets a twitchy when sequencing isn't explicitly set some minor edits needed to be made to the development DB to prevent a null id error when inserting new records. this should be done to production when it's ready as well
27 lines
555 B
PHP
27 lines
555 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Location extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
/**
|
|
* The table associated with the model.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $table = "location";
|
|
|
|
protected $primaryKey = 'id';
|
|
public $incrementing = true;
|
|
protected $fillable = [
|
|
"id",
|
|
"uuid",
|
|
"name",
|
|
"url", "description", "images", "active", "rating", "added_by", "tags", "created_at", "updated_at"];
|
|
}
|