Merge branch 'master' of https://github.com/sebathefox/skolehjem-webapp
This commit is contained in:
@@ -11,5 +11,11 @@ use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class Resource extends Model
|
||||
{
|
||||
//
|
||||
public function resourceExtension() {
|
||||
return $this->belongsTo("App\ResourceExtension");
|
||||
}
|
||||
|
||||
public function resourceCategory() {
|
||||
return $this->hasOneThrough("App\ResourceCategory", "App\ResourceExtension");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user