[Symfony \ Component \ Debug \ Exception \ FatalThrowableError]

时间:2019-11-12 01:35:19

标签: laravel-5

我无法播种数据库并出现此错误。 [Symfony \ Component \ Debug \ Exception \ FatalThrowableError] 找不到“渠道”类

这是用于运行mysql的laravel 5.3。

 function run()
    {
        $channel1=['title'=>'Laravel'];
        $channel2=['title'=>'Css3'];
        $channel3=['title'=>'Vue.Js'];
        $channel4=['title'=>'CakePhp'];
        $channel5=['title'=>'Node.js'];
        $channel6=['title'=>'Javascript'];

        Channel::create($channel1);
        Channel::create($channel2);
        Channel::create($channel3);
        Channel::create($channel4);
        Channel::create($channel5);
        Channel::create($channel6);
   }



I am expecting to seed the db

0 个答案:

没有答案