🗃️ Ajoute les tags

Pour #1
This commit is contained in:
2019-09-30 16:31:16 +02:00
parent 333f6feafb
commit a7715c8460
5 changed files with 96 additions and 1 deletions

12
app/PostsTag.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class PostsTag extends Model
{
protected $fillable = [
'post_id', 'tag_id',
];
}

10
app/Tag.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Tag extends Model
{
//
}