Last change
on this file since f457265 was d25ba66, checked in by Özkan İliyaz <iliyaz_96@…>, 4 years ago |
ADD post confirmation with multiple phases, notification after succesfully password creation
|
-
Property mode
set to
100644
|
File size:
400 bytes
|
Rev | Line | |
---|
[d25ba66] | 1 | <?php
|
---|
| 2 |
|
---|
| 3 | namespace App\Models;
|
---|
| 4 |
|
---|
| 5 | use Illuminate\Database\Eloquent\Model;
|
---|
| 6 |
|
---|
| 7 | class Phase extends Model
|
---|
| 8 | {
|
---|
| 9 | protected $table = "phases";
|
---|
| 10 | protected $fillable = [
|
---|
| 11 | "name", "reviewer_role_id"
|
---|
| 12 | ];
|
---|
| 13 |
|
---|
| 14 | public function user()
|
---|
| 15 | {
|
---|
| 16 | return $this->belongsTo(User::class);
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | public function reviewer()
|
---|
| 20 | {
|
---|
| 21 | return $this->belongsTo(Role::class, "reviewer_role_id");
|
---|
| 22 | }
|
---|
| 23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.