Move video over to software_id

This commit is contained in:
Deon George
2019-12-26 15:56:31 +11:00
parent 99ca07201e
commit 80a76559e5
8 changed files with 148 additions and 22 deletions

View File

@@ -5,9 +5,9 @@ namespace App\Models\Abstracted;
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Schema;
use DB;
use Illuminate\Support\Facades\DB;
use App\Models\{Person,Tag};
use App\Models\{Person,Software,Tag};
abstract class Catalog extends Model
{
@@ -18,6 +18,11 @@ abstract class Catalog extends Model
return $this->belongsToMany(Person::class);
}
public function software()
{
return $this->belongsTo(Software::class);
}
public function tags()
{
return $this->belongsToMany(Tag::class);