first commit
This commit is contained in:
commit
405df0a122
3083 changed files with 69203 additions and 0 deletions
51
dev/Models/PressReleaseContact.php
Normal file
51
dev/Models/PressReleaseContact.php
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Created by Reliese Model.
|
||||
*/
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
/**
|
||||
* Class PressReleaseContact
|
||||
*
|
||||
* @property int $press_release_id
|
||||
* @property int $contact_id
|
||||
* @property Contact $contact
|
||||
* @property PressRelease $press_release
|
||||
* @package App\Models
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact newModelQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact newQuery()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact query()
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact whereContactId($value)
|
||||
* @method static \Illuminate\Database\Eloquent\Builder|PressReleaseContact wherePressReleaseId($value)
|
||||
* @mixin \Eloquent
|
||||
*/
|
||||
class PressReleaseContact extends Model
|
||||
{
|
||||
protected $table = 'press_release_contact';
|
||||
public $incrementing = false;
|
||||
public $timestamps = false;
|
||||
|
||||
protected $casts = [
|
||||
'press_release_id' => 'int',
|
||||
'contact_id' => 'int'
|
||||
];
|
||||
|
||||
protected $fillable = [
|
||||
'press_release_id',
|
||||
'contact_id'
|
||||
];
|
||||
|
||||
public function contact()
|
||||
{
|
||||
return $this->belongsTo(Contact::class);
|
||||
}
|
||||
|
||||
public function press_release()
|
||||
{
|
||||
return $this->belongsTo(PressRelease::class);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue