Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace App; | ||
|
||
use Illuminate\Database\Eloquent\Model; | ||
|
||
class Thread extends Model | ||
{ | ||
public function author() | ||
{ | ||
return $this->belongsTo('App\User'); | ||
} | ||
} |