1 回答

TA贡献2003条经验 获得超2个赞
正如你所指出的,问题似乎SocialFacebookAccount没有被发现。虽然 Lumen 中没有artisan make:model命令,但您可以手动编写模型。
app只需在名为 name 的文件夹中创建一个新文件SocialFacebookAccount.php,然后写入其基本内容:
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class SocialFacebookAccount extends Model
{
/**
* The attributes that are mass assignable.
*
* @var array
*/
protected $fillable = [];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = [];
}
这基本上就是 artisan make model 命令的作用。有了这个基础,您就可以继续按照问题中链接的步骤进行操作。
另外,请确保您已经使用以下命令创建了关联的迁移:php artisan make:migration create_social_facebook_accounts_table
- 1 回答
- 0 关注
- 115 浏览
添加回答
举报