Ignore:
Timestamp:
02/24/21 17:04:35 (4 years ago)
Author:
Özkan İliyaz <iliyaz_96@…>
Branches:
master
Children:
0c07a90
Parents:
1f059b0
Message:

ADD post confirmation with multiple phases, notification after succesfully password creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • app/Models/Post.php

    r1f059b0 rd25ba66  
    1616                return $this->belongsTo(User::class);
    1717        }
     18
     19        public function review() {
     20                return $this->hasOne(Review::class);
     21        }
     22
     23        public function needReview()
     24    {
     25        return PostSecurity::whereRoleId($this->user->role->id)->first();
     26    }
    1827
    1928        public function category() {
Note: See TracChangeset for help on using the changeset viewer.