// feel free to modify the name of this column, but title is supported by default (you would need to specify the name of the column Twill should consider as your "title" column in your module controller if you change it)
$table->string('title', 200)->nullable();
- $table->string('chapo')->nullable();
+ $table->text('chapo')->nullable();
$table->text('preview')->nullable();
$table->text('content')->nullable();
$table->integer('position')->nullable();
@extends('twill::layouts.form')
@section('contentFields')
- @formField('wysiwyg', [
+ @formField('ckeditor', [
'name' => 'extract',
'label' => 'Extrait',
])
@extends('twill::layouts.form')
@section('contentFields')
- @formField('input', [
+ @formField('wysiwyg', [
'name' => 'chapo',
'label' => 'ChapĂ´',
'maxlength' => 250,
<div class="row">
<div class="col-sm-6">
<h1>Nos mauvaises humeurs</h1>
- <article class="box p-3 mb-3">
+ <article class="box p-3 mb-3 ck-content">
<h2>{{$humeur->title}}</h2>
<p>{!! $humeur->extract !!}</p>
<a href="{{$humeur->url}}" class="click-here">Lire la suite</a>