i am building a comments system in my blog app ,i managed to do a part of this system..
my question is : is there any idea how to build management system for comments to show comments in admin panel and delete or hide comments ,also a filtration system to block a specific words in comments
i tried to search about that but i didn't get any answers..
my migration
public function up()
{
Schema::create('comments', function (Blueprint $table) {
$table->increments('id');
$table->unsignedInteger('user_id');
$table->unsignedBigInteger('post_id');
$table->integer('parent_id')->unsigned()->nullable();
$table->text('body');
$table->timestamps();
$table->softDeletes();
$table->foreign('post_id')->references('id')->on('posts')->onDelete('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('comments');
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire