Commit 508c07fe by 庄欣

攻略部分的API

parent dac90f3e
......@@ -25,6 +25,11 @@ class Art extends Model
];
protected $table = "myp_article";
protected $fillable = [
'content',
'title',
'cover'
];
public function relation_keywords()
{
......
......@@ -48,6 +48,7 @@ class Article extends \Illuminate\Routing\Controller
}
$this->csrf($post,'content');
$model = ArtModel::newArt($post);
var_dump($model);
if ($model !== false) {
Event::fire(new ArtAddEvent($model));
return Response::ok();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment