skip to Main Content

Laravel form validation max chars using 2 fields

i have a simple registeration form i use this validation for creating u new user $validator = Validator::make($request->all(), [ 'first_name' => ['required'], 'last_name' => ['required'], 'phone' => ['required', 'string', 'max:255'], 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'], 'password' => ['required',…

VIEW QUESTION

Php versions – laravel composer install suddenly returns "An option shortcut cannot be empty."

I have been working on a Laravel 7 project since a while. Suddenly, my composer install returns the following error Generating optimized autoload files Class ModulesTestsThumbnailTest located in ./Modules/Media/Tests/ThumbnailTest.php does not comply with psr-4 autoloading standard. Skipping. > IlluminateFoundationComposerScripts::postAutoloadDump >…

VIEW QUESTION

how to combine two condition in laravel elequent relation

i'm biginner in laravel, How can I combine these two conditions in the controller? the main table is tasks that has forign key to four tables office,commander,status,priority. $tasks=Task::where([['type',0]])->get(); $tasks=Task::with(['Office', 'Commander','Status','Priority'])->paginate(8); return view('taskmanager.tasks.index',compact('tasks')); Each of the two conditions in the first…

VIEW QUESTION
Back To Top
Search