Created
November 20, 2020 20:21
-
-
Save EricMcWinNer/34b91d434511cbc75106ddbf86d20451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Models; | |
use Illuminate\Database\Eloquent\Model; | |
class Vendor extends Model { | |
/** | |
* Get the this vendor's user reviews | |
*/ | |
public function reviews() { | |
return $this->hasMany(App\Model\UserReview::class, App\Model\Product::class); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment