我有表可加標籤寫播種機,它的表多對多多態關係(標籤和後): taggable_id - id of Post
tag_id - id of Tag
taggable type - location of post model (default value"App/Models/Posts/Post")
is_search_term - boolen (0 or 1)
如何創建,每個時間關
我已經透視表加標籤,它的表多對多多態關係在Laravel(標籤和後): taggable_id - id of Post
tag_id - id of Tag
taggable type - location of post model (default value"App/Models/Posts/Post")
is_search_term - boolen (0 or 1)
如何創建
爲什麼我的播種機代碼中的「關係」不起作用?它插入到用戶模型沒有任何問題。但是不會向UserMeta模型插入任何內容。甚至沒有任何錯誤。 我已經在控制器中測試過這段代碼。它運行罰款與 「關係」 <?php
use Illuminate\Database\Seeder;
use App\User;
use App\UserMeta;
class MyUsersTableSeeder ext