Same Email/Username update validation rule in Laravel
$request->validate([ 'email' => ['required','string','unique:users,email,'.$user_id], 'username' => ['required','string','unique:users,username,'.$user_id],
Search for a command to run...
Articles tagged with #laravel
$request->validate([ 'email' => ['required','string','unique:users,email,'.$user_id], 'username' => ['required','string','unique:users,username,'.$user_id],
Here is a simple way to implement the items count along with date in past 7 days. Of course you can change the date range. Here is the code for laravel controller // $period = Amount of days you want to fetch data for. // To ...
Note: For personal reference. Check out if it helps you. Length of various types of integers in mysql/ Laravel migration. $table->bigInteger('test'); //20 $table->integer('test'); //11 $table->mediumInteger('test'); //9 $table->smallInteger('t...
These variables can help you out a lot.
File Upload & Delete helper function for Laravel
Here's a quick validation rules for image dimension in Laravel public function postImage(Request $request) { $this->validate($request, [ 'avatar' => 'dimensions:min_width=250,min_height=500' ]); // or... ...
