All of the post or get requests must be to api?
Can you send a picture of your source code?
and i have blade for header, how do i pass variable to this blade?
There is an article to how make reset password api via SMS?
How can I guarantee the user that sends new password is exactly the same one that requested code?
what are the differences?
is this reset password table?
Have someone used Sengrid?
datetime
$events = Event::where(‘start_date’,’=’,$now->format(‘Y-m-d’))
->get([‘id’, ‘title’, ‘start_date’, ‘end_date’, ‘venue_name’]);
i’m trying to get start today without compare the time but it didnt work. but if i change = into >= it will appear the right result
what should i do?
i need using it with whereOr too. how is it? 😢
->where(‘end_date’, ‘>=’, $now)
->orWhere(‘start_date’,$now->format(‘Y m d’))
->get([‘id’, ‘title’, ‘start_date’, ‘end_date’, ‘venue_name’]);
->where(‘end_date’, ‘>=’, $now)
->orWhere(‘start_date’,$now->format(‘Y m d’))
->get([‘id’, ‘title’, ‘start_date’, ‘end_date’, ‘venue_name’]);
this is the full query
->where(‘end_date’, ‘>=’, $now)
->orWhereDate(‘start_date’,$now->format(‘Y m d’))
->get([‘id’, ‘title’, ‘start_date’, ‘end_date’, ‘venue_name’]);
->where(‘end_date’, ‘>=’, $now)
->orWhereDate(‘start_date’,$now->format(‘Y m d’))
->get([‘id’, ‘title’, ‘start_date’, ‘end_date’, ‘venue_name’]);
thanks a lot! it works 😊
If I use vue routing
All of the post or get requests must be to api??
youre welcome

local

server
What’s your php version on server?
PHP 7.2.28 (cli) (built: Feb 18 2020 11:07:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
It looks Ok
Can you send a picture of your source code?
has exceeded the ‘max_connections_per_hour’ resource (current value: 500) (SQL: select count(*) as aggregate from `drawings`)
TO ‘root’@’localhost’
WITH MAX_QUERIES_PER_HOUR 1000
MAX_CONNECTIONS_PER_HOUR 100;
I have some issues :
There was an error while creating the signature: error:04088003:rsa routines:RSA_setup_blinding:BN lib
With laravel 5.6 on api routes
passport : 5.0
Please I need help
In this laravel 7 tutorial, we learn about how to install laravel latest version in a simple example by anil Sidhu laravel Language
Points of Video is here
Laravel 7 install
need to install composer
need to install laravel installer
command to make project
run project
https://www.youtube.com/watch?v=p2PLgQVqS7g install composer
laravel 7 complete playlist link is here: https://www.youtube.com/playlist?list=PL8p2I9GklV46twRyl207h5LcsdjB9S9B0
facebook page link is here
https://www.facebook.com/stepbysteplearn/
react js in hindi: https://www.youtube.com/playlist?list=PL8p2I9GklV44oDSE3j-E-OkvxFkz5a1d8
Checkout and subscribe our new channel for technical news
https://www.youtube.com/channel/UCUu2FA5OO9KpFXL2ZYR0aNg
There is an article to how make reset password api via SMS?!
public function withValidator($validator)
{
if (!$validator->fails()) {
if(Cache::has($this->mobile))
{
if(Cache::get($this->mobile) != $this->code)
{
$validator->errors()->add(‘code’, ‘code is incorrect!’);
}else
{
$this->user = User::where(‘mobile’, $this->mobile)->first();
}
}else
{
$validator->errors()->add(‘code’, ‘code not found!’);
}
}
}
I am really confused!
I want to return an error if it fails
public function withValidator($validator)
{
if (!$validator->fails()) {
if(Cache::has($this->mobile))
{
if(Cache::get($this->mobile) != $this->code)
{
$validator->errors()->add(‘code’, ‘code is incorrect!’);
}else
{
$this->user = User::where(‘mobile’, $this->mobile)->first();
}
}else
{
$validator->errors()->add(‘code’, ‘code not found!’);
}
}
}
public function withValidator($validator)
{
if (!$validator->fails()) {
$validator->after(function ($validator) {
if (Cache::has($this->mobile)) {
if (Cache::get($this->mobile) != $this->code) {
$validator->errors()->add(‘code’, ‘code is incorrect!’);
} else {
$this->user = User::where(‘mobile’, $this->mobile)->first();
}
} else {
$validator->errors()->add(‘code’, ‘code not found!’);
}
});
}