protected $primaryKey = 'BDM_EIGID';protected $keyType = 'string';假设这个字段BDM_EIGID是自定义生成规则的字符串,类似这种26a301205f7d5bf00c0aa65920e0aae678e881787f191b18f777e9f153cdec67数据库字段名设置的又长又恶心, 自己写个getter方法app/Models
routes/api.php<?php// \Illuminate\Routing\Route ERRORuse \Illuminate\Support\Facades\Route;Route::group(['prefix' => 'contract', 'namespace'=>'Contract'], function() { Route::...
验证不是从get、post传参数过来的数据参考:src/Illuminate/Foundation/Validation/ValidatesRequests.php /** * Validate the given request with the given rules. * * @param \Illuminate\Http\Request $request * @param array $rules * @param a.
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号