Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php // Model
- namespace App;
- use Illuminate\Database\Eloquent\Model;
- class Project extends Model
- {
- protected $fillable = [
- 'title',
- 'description'
- ];
- public function owner() {
- return $this->belongsTo(User::class);
- }
- // ...
- // ...
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement