use Doctrine\DBAL\Schema\Comparator;
use Doctrine\DBAL\Schema\Schema;
-class MigrateCommand extends CubistCommand
-{
+class MigrateCommand extends CubistCommand {
/**
* The name and signature of the console command.
*
*
* @return mixed
*/
- public function handle()
- {
+ public function handle() {
$this->_schema = new Schema();
$this->_handleMagicFolder([$this, '_migrate']);
/**
* @param $model CubistMagicAbstractModel
*/
- public function _migrate($model)
- {
+ public function _migrate($model) {
+ if (!$model->getTable()) {
+ return;
+ }
$this->line('Handling ' . get_class($model));
$res = $model->setSchema($this->_schema);
if (null !== $res) {
--- /dev/null
+@php
+ $v=old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '';
+@endphp
+ <!-- text input -->
+<div @include('crud::inc.field_wrapper_attributes') >
+ <label>{!! $field['label'] !!}</label>
+ @include('crud::inc.field_translatable_icon')
+
+ <input
+ hidden="text"
+ name="{{ $field['name'] }}"
+ value="{{$v}}"
+ @include('crud::inc.field_attributes')
+ >
+ <span>{{$v}}</span>
+ {{-- HINT --}}
+ @if (isset($field['hint']))
+ <p class="help-block">{!! $field['hint'] !!}</p>
+ @endif
+</div>