Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Generate Validation Rules from a Database Schema in Laravel

Laravel Schema Rules is a package that automatically generates basic Laravel validation rules based on your database table schema. You can use this package as a starting point to quickly create boilerplate rules and optimize as needed. Given the following schema (from in the README) for your table: Schema::create('persons', function (Blueprint $table) { $table->id(); $table->string('first_name', 100); $table->string('last_name', 100); $table->string('email'); $table->foreignId('address_id')->constrained();...