How to turn off timestamps in the controller?
The closing method of the model is
<?php namespace App;
use Illuminate\Database\Eloquent\Model;
class user extends Model {
//protected $table = 'systems';
//关闭时间
public $timestamps = false;
}
What if I change it in the controller? Inject save verse case. . I want to simply write
虽然不太清楚,题主问的是不是这个,不过你可以尝试下面这个:
还有Laravel相关的问题可以到Laravist来问我,这是我刚刚上线的Laravel社区