Hi everyone,How can I validate such array in laravel?
-Want to develop your own messaging application?
-Want to know How IT expert design a real time applications?
It did the job?
quick question , how can one assert that a job was pushed after another job was dispatched ?
If I come to the local repository, I must have the token with js

Can u capture in kernel.php file
Bro ReactJs and React Native group Link is not working please send new link Thanks.

Subscribe for amazing tech content https://youtube.com/channel/UCS98d7kMmox6AnCA9YLhqqw
Set the schedule command in linux crontab – https://laravel.com/docs/8.x/scheduling#running-the-scheduler
Laravel has become a desired technology among PHP developers. here you can find top Laravel tutorials and resources of many versions.

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
phpprogrammers share with you how to create login and register api in laravel, laravel login and registration api example, laravel login and signup

Hi everyone,How can I validate such array in laravel?
Hello Connections,
-Want to develop your own messaging application?🙄
-Want to know How IT expert design a real time applications?🤔
-Want to Getting…
$this->validate($request, [ ‘choices.*’ => ‘required’]
Or put what you want
Or put what you want
menz I want to validate all key and values in nested array
Then after *.keyname
https://laracasts.com/discuss/channels/laravel/how-to-validate-array-input-fields i hope this will helps you

menz thanks very much

type php -v
Check if php is installed
It did the job?
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;
}
}
}