Refactor script
This commit is contained in:
21
app/Models/Merchant.php
Normal file
21
app/Models/Merchant.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use MongoDB\Laravel\Eloquent\Model;
|
||||
|
||||
class Merchant extends Model
|
||||
{
|
||||
protected $connection = 'mongodb';
|
||||
protected $collection = 'merchants';
|
||||
|
||||
protected $fillable = [
|
||||
'id',
|
||||
'name',
|
||||
'category',
|
||||
'latitude',
|
||||
'longitude',
|
||||
'city',
|
||||
'address'
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user