rename models and associates, isolate botanic with shop
This commit is contained in:
16
app/Models/Botanic/Variety.php
Normal file
16
app/Models/Botanic/Variety.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Botanic;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Variety extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
protected $table = 'botanic_varieties';
|
||||
|
||||
public function Specie()
|
||||
{
|
||||
return $this->belongsTo('App\Models\Botanic\Specie');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user