Skip to content

Instantly share code, notes, and snippets.

View EricMcWinNer's full-sized avatar
😴
Sleeping... If it's important, dream it to me

Eric Aprioku (Eric McWinNEr) EricMcWinNer

😴
Sleeping... If it's important, dream it to me
View GitHub Profile
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Document extends Model
{
/**
* Get the owner of the relationship which could either be a broker or a company
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class ProductVendor extends Pivot
{
/**
* Indicates if the IDs are auto-incrementing.
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Relations\Pivot;
class ProductVendor extends Pivot
{
//
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The vendors that belong to this product
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The vendors that belong to this product
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The vendors that belong to this product
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Product extends Model
{
/**
* The vendors that belong to this product
<?php
namespace App\Http\Controllers;
use App\Models\Product;
class RandomController extends Controller {
/**
* Gets vendors
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Vendor extends Model
{
/**
* The products that belong to this vendor
<?php
namespace App\Http\Controllers;
use App\Models\Product;
class RandomController extends Controller {
/**
* Gets vendors
*/