You know how to come this error?

|
DesolatorMagno 2021-05-18 16:29:12
<input type=”hidden” name=”_method” value=”delete”>
it should generate something like that (you can try changing DELETE to delete.
TheTumaMan 2021-05-18 16:29:14
Yes, it’s working
TheTumaMan 2021-05-18 16:30:37
I tried but I have the same problem
DesolatorMagno 2021-05-18 16:30:49
and try to don’t write it like that
route(‘customers.destroy’, $customer->id)
it should be
route(‘customers.destroy’, [ ‘customer’ => $customer->id])
TheTumaMan 2021-05-18 16:32:41
Mmh
“Missing required parameters for [Route: customers.destroy] [URI: customers/{customer}]. ”
DesolatorMagno 2021-05-18 16:34:55
laravel_discuss-81722.jpg

TheTumaMan 2021-05-18 16:35:31
Oh ok you’re right sorry, i’m trying
TheTumaMan 2021-05-18 16:36:26
But I don’t know how to put it in web.php if i’m using Route::resource. I’ve just created new Route with Route::delete …
DesolatorMagno 2021-05-18 16:37:02
Don’t worry, leave it like that, you can read about it later.
DesolatorMagno 2021-05-18 16:37:58
Just check the HTML, see if the actions is right, and the destroy is there in a hidden input.
TheTumaMan 2021-05-18 16:41:18
“<form id=”delete-customer-{{ $customer->id }}-form” action=”{{ route(‘customers.destroy’, [‘customer’ => $customer]) }}” method=”POST” style=”display: none;”>
@csrf
<input type=”hidden” name=”_method” value=”delete”>
</form>”

I’m trying with this and web.php is still:
“Route::resource(‘customers’, ‘CustomersController’)->except(‘show’)->middleware(‘auth’);”

But the problem persists… 🤨

ameurazzi 2021-05-18 17:37:47
new virtuel coin sign up and tak 10 for free Hey! If you want to control your Subscriptions and pay only to those you approve, sign up for Revuto using my Referral Link below.

Join the Referral Program and earn up to 600 Revutokens!

https://revuto.com/invite/ameu56f148

Nelly A 2021-05-18 17:57:13
To insert an url on a laravel it’s: <a href=”{{ url(‘nameOfTheUrl’)}}”></a>
How do you write it properly for a href with a phone number?
itspirate 2021-05-18 18:21:10
laravel_discuss-81732.jpg
getting this error
itspirate 2021-05-18 18:21:48
I was opening sentrifugo application
Dushyantsinghds 2021-05-18 18:42:58
I Need Google cloud platform certification exam vouchers.
Ping me please
YOUCODEWORLD 2021-05-18 19:04:43
Nelly A 2021-05-18 17:57:13
To insert an url on a laravel it’s: <a href=”{{ url(‘nameOfTheUrl’)}}”></a>
How do you write it properly for a href with a phone number?

<a href=”{{ url(‘nameOfTheUrl’, [$phone])}}”>John</a>

Virat 2021-05-18 19:10:06
laravel_discuss-81738.jpg

Virat 2021-05-18 19:10:18
Please anyone help me
Virat 2021-05-18 19:11:26
In db I gave 8 columns including Id
YOUCODEWORLD 2021-05-18 19:11:34
Virat 2021-05-18 19:10:06

you field firstName don’t null

YOUCODEWORLD 2021-05-18 19:11:45
you must give default value
Virat 2021-05-18 19:12:22
My first field is Id
YOUCODEWORLD 2021-05-18 19:12:50
You must give all not null field add default value
YOUCODEWORLD 2021-05-18 19:13:30
And in Model file add fillable variable
Chrisdavid32 2021-05-18 19:17:26
If there is any opening for a junior Laravel developer, I’m available
Virat 2021-05-18 19:24:47
YOUCODEWORLD 2021-05-18 19:11:45
you must give default value

How to give default value please tell me
I’m new to learn laravel

Nelly A 2021-05-18 19:25:15
YOUCODEWORLD 2021-05-18 19:04:43
<a href=”{{ url(‘nameOfTheUrl’, [$phone])}}”>John</a>

It’s not to retrieve a phone number related to a user from a DB, it’s just a phone number on my header that’s on display for users to call

YOUCODEWORLD 2021-05-18 19:25:36
Virat 2021-05-18 19:10:06

You know how to come this error ?

YOUCODEWORLD 2021-05-18 19:26:36
Nelly A 2021-05-18 19:25:15
It’s not to retrieve a phone number related to a user from a DB, it’s just a phone number on my header that’s on display for users to call

Tel: 123-456-7890

YOUCODEWORLD 2021-05-18 19:27:05
<a href=”tel:+123456789”>+123456789</a>
Nelly A 2021-05-18 19:27:59
YOUCODEWORLD 2021-05-18 19:26:36
Tel: 123-456-7890

Alright, I was wondering about the syntax as you can have asset() or url(). Thanks ☺️

kv_sanjay 2021-05-18 19:29:05
YOUCODEWORLD 2021-05-18 19:25:36
You know how to come this error ?

Show the code

Nelly A 2021-05-18 19:29:48
YOUCODEWORLD 2021-05-18 19:27:05
<a href=”tel:+123456789”>+123456789</a>

Alright, so it’s just plain and simple html… 😉 Why make things simple whannyou can make them complicated 😂

Virat 2021-05-18 19:30:06
YOUCODEWORLD 2021-05-18 19:25:36
You know how to come this error ?

No Please let me know

|