小编Jon*_*nas的帖子

Laravel 迁移中的时间格式?

我想要一个输入,您可以在其中以 EU 格式输入时间,例如 12:00 或 21:34。(hh:mm) 我该怎么做?

Schema::create('posts', function (Blueprint $table) {
    $table->increments('id');
    $table->string('title');
    $table->string('arena');
    $table->date("h,i"('beginn'));
    $table->timestamps();
});
Run Code Online (Sandbox Code Playgroud)

这是我所拥有的,但显然是错误的。

php time laravel

9
推荐指数
2
解决办法
3万
查看次数

标签 统计

laravel ×1

php ×1

time ×1