Advertisement
Guest User

Untitled

a guest
Aug 17th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. <?php // Model
  2.  
  3. namespace App;
  4.  
  5. use Illuminate\Database\Eloquent\Model;
  6.  
  7. class Project extends Model
  8. {
  9.  
  10. protected $fillable = [
  11. 'title',
  12. 'description'
  13. ];
  14.  
  15. public function owner() {
  16. return $this->belongsTo(User::class);
  17. }
  18.  
  19. // ...
  20. // ...
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement