ЕС
Size: a a a
ЕС
NK
@import 'bootstrap/sass/bootstrap'
ЕС
АХ
АХ
АХ
АХ
M
M
$post->images()->create(['data' => Input::file('image')]);
M
M
SQLSTATE[HY000]: General error: 1364 Field 'disk_name' doesn't have a default value (SQL: insert into `system_files` (`is_public`, `field`, `attachment_id`, `attachment_type`, `updated_at`, `created_at`) values (1, images, 84, Mihailbishkek\Baker\Models\Post, 2020-08-23 06:04:26, 2020-08-23 06:04:26))
v
SQLSTATE[HY000]: General error: 1364 Field 'disk_name' doesn't have a default value (SQL: insert into `system_files` (`is_public`, `field`, `attachment_id`, `attachment_type`, `updated_at`, `created_at`) values (1, images, 84, Mihailbishkek\Baker\Models\Post, 2020-08-23 06:04:26, 2020-08-23 06:04:26))
v
v
$file = new File([‘is_public’ => true]);
$file->data = Input::file(‘image’);
$file->save();
$model->file()->add($file);
v
M
$file = new File([‘is_public’ => true]);
$file->data = Input::file(‘image’);
$file->save();
$model->file()->add($file);
A
SR