Models
This commit is contained in:
14
app/Source.php
Normal file
14
app/Source.php
Normal file
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use App\Article;
|
||||
|
||||
class Source extends Model
|
||||
{
|
||||
public function articles()
|
||||
{
|
||||
return $this->hasMany(Article::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user