I want to store emoji but I don't known the the way
this is the view
<li>
<div class="box">
<div class="Like"><a class="Like__link"><i
class="fa fa-thumbs-up"></i> </a>
<div class="Emojis">
<div class="Emoji Emoji--like">
<div class="icon icon--like"></div>
</div>
<div class="Emoji Emoji--love">
<div class="icon icon--heart"></div>
</div>
<div class="Emoji Emoji--haha">
<div class="icon icon--haha"></div>
</div>
<div class="Emoji Emoji--wow">
<div class="icon icon--wow"></div>
</div>
<div class="Emoji Emoji--sad">
<div class="icon icon--sad"></div>
</div>
<div class="Emoji Emoji--angry">
<div class="icon icon--angry"></div>
</div>
</div>
</div>
</div>
</li>
in the migration i add this fields :
Schema::create('likes', function (Blueprint $table) {
$table->increments('id');
$table->integer('user_id')->unsigned();
$table->integer('likeable_id')->unsigned();
$table->string('likeable_type', 255);
$table->enum('type',[
'like', 'love',
'haha','wow',
'angry', 'sad'
]);
$table->timestamps();
$table->foreign('user_id')
->references('id')->on('users')
->onDelete('cascade');
});
how can I store the emoji by simple way help me please
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2IVE8VO
via IFTTT
Aucun commentaire:
Enregistrer un commentaire