Hi everyone, How can I validate such array in laravel?

|
M 2021-09-06 15:25:43
artyomzp 2021-09-06 15:24:27
session if you want to store it in client side. localstorage – is public storage for all sites if i right remember

If I come to the local repository, I must have the token with js

M 2021-09-06 15:27:04
How to send acces token to oauth server
M 2021-09-06 15:27:53
laravel_discuss-93632.jpg

M 2021-09-06 15:28:48
I need to store the access token so I can forward it to the source server
Fauzi 2021-09-06 17:50:31
mrgafury 2021-09-06 11:53:54
Hi i use laravel schedule task. all things ok. but schedule runs only once. Its not work automaticallly. use php artisan schedule:run and php artisan schedule:run >> /dev/null 2>&1

Can u capture in kernel.php file

StrongUo 2021-09-06 18:49:54
@mehrabjafari

Bro ReactJs and React Native group Link is not working please send new link Thanks.

Asamoah 2021-09-06 19:01:24
laravel_discuss-93646.jpg
Subscribe for amazing tech content https://youtube.com/channel/UCS98d7kMmox6AnCA9YLhqqw
Dawood Shaikh 2021-09-06 19:19:32
mrgafury 2021-09-06 11:53:54
Hi i use laravel schedule task. all things ok. but schedule runs only once. Its not work automaticallly. use php artisan schedule:run and php artisan schedule:run >> /dev/null 2>&1

Set the schedule command in linux crontab – https://laravel.com/docs/8.x/scheduling#running-the-scheduler

gauravhacky 2021-09-06 19:58:22
https://8bityard.com/category/laravel-tutorials/

Laravel – 8Bityard8Bityard
Laravel has become a desired technology among PHP developers. here you can find top Laravel tutorials and resources of many versions.
Vccccgg 2021-09-06 20:03:13
laravel_discuss-93649.jpg
Hello, Does someone know why I’m getting this mistake , help , please.
Vccccgg 2021-09-06 20:09:06
I was running a simple test
BaronNo1 2021-09-06 20:10:34
Quick Question: If you have a live app, is it ideal to tell people the number of users you have or it should be a secret?
NanoCellMusic 2021-09-06 20:42:28
Vccccgg 2021-09-06 20:03:13
Hello, Does someone know why I’m getting this mistake , help , please.

If you read what the error says then it explains what’s wrong with it. Your asserting 200 but the page is returning a 302 which if you Google http status code will show show you its a redirect. There for I would assume that you are trying to assert a page that is auth guarded. In that case you need to look at the testing section in the documentation for laravel on testing where it shows you how to test

ho_gya_check_karlo 2021-09-06 21:17:30
https://phpprogrammers.in/post/login-and-register-api-in-laravel

login and register api in laravel – phpprogrammers.inphpprogrammers
phpprogrammers share with you how to create login and register api in laravel, laravel login and registration api example, laravel login and signup
flyingdragons 2021-09-06 23:06:44
Hi anyone having Confident Laravel codebase
flyingdragons 2021-09-06 23:07:19
I have video access but dont have code of it
flyingdragons 2021-09-06 23:11:09
If anyone has code can you please share me the zip file of it
RahiMSuleymaN 2021-09-06 23:34:53
laravel_discuss-93661.jpg
Hi everyone,How can I validate such array in laravel?
RahiMSuleymaN 2021-09-06 23:36:21
<input type=”number” class=”w-100″ id=”fenn_{{ $fenn->id }}_{{ $sual_tipi->id }}” name=”sual_tipleri[{{ $fenn->id }}][{{ $sual_tipi->id }}]” value=”{{ is_array(old(‘sual_tipleri’)) ? old(‘sual_tipleri’)[$fenn->id][$sual_tipi->id] : 0 }}” min=”0″ max=”50″> my inputs like this in loop
RahiMSuleymaN 2021-09-06 23:37:16
dd($request->post(‘sual_tipleri’));
Siberfx 2021-09-06 23:40:52
ne yapmaya çalışıyorsun Süleymanov?
Dushyantsinghds 2021-09-07 00:27:06
https://www.linkedin.com/posts/dushyantsingh-ds_coding-programming-codingninjas-activity-6840756412595933184-sOrH

Dushyant Singh RD on LinkedIn: #coding #programming #codingninjasLinkedin
Hello Connections,

-Want to develop your own messaging application?🙄
-Want to know How IT expert design a real time applications?🤔
-Want to Getting…

2021-09-07 10:01:01
RahiMSuleymaN 2021-09-06 23:37:16
dd($request->post(‘sual_tipleri’));

$this->validate($request, [ ‘choices.*’ => ‘required’]
Or put what you want

RahiMSuleymaN 2021-09-07 10:02:10
2021-09-07 10:01:01
$this->validate($request, [ ‘choices.*’ => ‘required’]
Or put what you want

menz I want to validate all key and values in nested array

2021-09-07 10:02:57
RahiMSuleymaN 2021-09-07 10:02:10
menz I want to validate all key and values in nested array

Then after *.keyname

2021-09-07 10:04:08
RahiMSuleymaN 2021-09-07 10:02:10
menz I want to validate all key and values in nested array

https://laracasts.com/discuss/channels/laravel/how-to-validate-array-input-fields i hope this will helps you

RahiMSuleymaN 2021-09-07 10:32:34
laravel_discuss-93675.jpg
menz thanks very much
Rahul Kothari 2021-09-07 12:25:21
laravel_discuss-93678.jpg

Rahul Kothari 2021-09-07 12:25:35
Anybody help.me why it will show php command not found
BaronNo1 2021-09-07 12:26:40
Rahul Kothari 2021-09-07 12:25:35
Anybody help.me why it will show php command not found

type php -v

Check if php is installed

2021-09-07 12:53:47
RahiMSuleymaN 2021-09-07 10:32:34
menz thanks very much

It did the job?

KinyaElgrande 2021-09-07 14:04:09
quick question , how can one assert that a job was pushed after another job was dispatched ?
zed me 2021-09-07 15:19:50
How do I solve this error on Argument 1 passed to IlluminateAuthSessionGuard::login() must be an instance of IlluminateContractsAuthAuthenticatable, null given, called in /home/kweli/kazi-sasa/vendor/laravel/ui/auth-backend/RegistersUsers.php on line 36
zed me 2021-09-07 15:20:17
<?php

namespace AppHttpControllersAuth;

use AppCompany;
use AppHttpControllersController;
use AppProvidersRouteServiceProvider;
use AppUser;
use IlluminateFoundationAuthRegistersUsers;
use IlluminateSupportFacadesHash;
use IlluminateSupportFacadesValidator;
use AppProfile;

class RegisterController extends Controller
{
/*
|————————————————————————–
| Register Controller
|————————————————————————–
|
| This controller handles the registration of new users as well as their
| validation and creation. By default this controller uses a trait to
| provide this functionality without requiring any additional code.
|
*/

use RegistersUsers;

/**
* Where to redirect users after registration.
*
* @var string
*/
protected $redirectTo = RouteServiceProvider::HOME;

/**
* Create a new controller instance.
*
* @return void
*/
public function __construct()
{
$this->middleware(‘guest’);
}

/**
* Get a validator for an incoming registration request.
*
* @param array $data
* @return IlluminateContractsValidationValidator
*/
protected function validator(array $data)
{
if (request()->user_type === “Company”) {
// dd(request()->all());
return Validator::make($data, [
‘first_name’ => [‘required’, ‘string’, ‘max:255’],
‘last_name’ => [‘required’, ‘string’, ‘max:255’],
‘company_name’ => [‘required’, ‘string’, ‘max:255’, ‘unique:companies’],
’email’ => [‘required’, ‘string’, ’email’, ‘max:255’, ‘unique:users’],
‘password’ => [‘required’, ‘string’, ‘min:8’, ‘confirmed’],
]);
}

if (request()->user_type === “Candidate”) {
return Validator::make($data, [
‘first_name’ => [‘required’, ‘string’, ‘max:255’],
‘last_name’ => [‘required’, ‘string’, ‘max:255’],
‘user_name’ => [‘required’, ‘string’, ‘max:255’, ‘unique:users’],
’email’ => [‘required’, ‘string’, ’email’, ‘max:255’, ‘unique:users’],
‘gender’ => [‘required’, ‘string’],
‘dob’ => [‘required’, ‘date’, ‘before:18 years ago’],
‘phone_number’ => [‘required’, ‘regex:/^+[1-9]{1}[0-9]{3,14}$/’, ‘min:10’, “max:13”],
‘password’ => [‘required’, ‘string’, ‘min:8’, ‘confirmed’],
]);
}

}

/**
* Create a new user instance after a valid registration.
*
* @param array $data
* @return AppUser
*/
protected function create(array $data)
{
if (request()->user_type === ‘Candidate’) {
$user = User::create([
‘first_name’ => $data[‘first_name’],
‘last_name’ => $data[‘last_name’],
‘user_name’ => $data[‘user_name’],
‘user_type’ => $data[‘user_type’],
’email’ => $data[’email’],
‘dob’ => $data[‘dob’],
‘gender’ => $data[‘gender’],
‘phone_number’ => $data[‘phone_number’],
‘password’ => Hash::make($data[‘password’]),
]);

Profile::create([
‘user_id’ => $user->id,
‘gender’ => $user->gender,
‘dob’ => $user->dob,
]);
return $user;
}
if (request()->user_type === “company”) {
$company = Company::create([
‘first_name’ => $data[‘first_name’],
’email’ => $data[’email’],
‘last_name’ => $data[‘last_name’],
‘company_name’ => $data[‘company_name’],
‘password’ => Hash::make($data[‘password’]),
]);
return $company;
}
}
}

larnolimit 2021-09-07 15:38:25
can help me? how source code to create get in laravel 8?
|