首先在 Providers\AppServiceProvider.php 文件中自定义 手机号和身份证号验证 // AppServiceProvider.php 文件 <?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Illuminate\Support\Facades\Validator; use Illuminate\Support\Facades\DB; class AppServicePr
默认表单提示是英文的,我们可以安装语言包构建多语言环境. 根据版本选择命令 For Laravel 7.x : run composer require caouecs/laravel-lang:~6.0 For Laravel 6.x : run composer require caouecs/laravel-lang:~5.0 For Laravel 5.8 : run composer require caouecs/laravel-lang:~4.0 For Laravel 5.1-5
public function rules(){ return [ 'm_pushing_frequency_level_id' => 'integer|required|exists:m_pushing_frequency_levels.id', ]:}我看到laravel学院上是exists:table.column这么写的,但是我这样写,他报 local.ERROR: /api/appeal {POST} exception 'InvalidArgumentException' with