1.routes 目录下面创建 finance.php文件use Illuminate\Support\Facades\Route; //操作记录 Route::group(['namespace' => 'Api\Finance', 'middleware' => ['throttle:60,1']], function () { }); 2.Providers目录下Ro...
Model 层时间配置 const CREATED_AT = 'create_time'; const UPDATED_AT = 'update_time'; protected $table = 'app_expand'; public $timestamps = true; 结果 public $timestamps = true; Illuminate...
参考链接https://blog.csdn.net/johnhan9/article/details/88635241
1.with 驼峰命名方法publicRelation数组输出的时候自动转成了小写public_relationModel 类里面设置属性后就不会自动转换了2.如果设置了驼峰 在$this->public_relation 不会获取需要$this->publicRelation参考链接 https://learnku.com/laravel/t/30059