Do you have any tutorial to use the slug in Laravel 8?

|
Sai Prakash 2022-02-10 18:06:18
I have included
Sai Prakash 2022-02-10 18:08:16
laravel_discuss-107781.jpg

Sai Prakash 2022-02-10 18:08:44
In the controller, I have send the name field.
Sai Prakash 2022-02-10 18:09:48
laravel_discuss-107783.jpg

Sai Prakash 2022-02-10 18:10:11
In the model, I have kept name field
Sai Prakash 2022-02-10 18:10:35
I am getting name cannot be null
Ojsholly 2022-02-10 18:14:24
Dump the value of the name field in your request
Ojsholly 2022-02-10 18:14:40
Check to see it’s not null
Ojsholly 2022-02-10 18:15:15
Also, it’s better to always validate the input coming from the request
Sai Prakash 2022-02-10 18:16:34
Ojsholly 2022-02-10 18:15:15
Also, it’s better to always validate the input coming from the request

I didn’t understand

Ojsholly 2022-02-10 18:19:20
Validate the data coming from the frontend before attempting to process it
Ojsholly 2022-02-10 18:19:45
For instance, all fields which are not nullable in your DB should be required
Sai Prakash 2022-02-10 18:20:02
How to do from localhost?
Ojsholly 2022-02-10 18:25:19
Sai Prakash 2022-02-10 18:20:02
How to do from localhost?

https://laravel.com/docs/8.x/validation

Laravel – The PHP Framework For Web ArtisansLaravel
Laravel is a PHP web application framework with expressive, elegant syntax. We’ve already laid the foundation — freeing you to create without sweating the small things.
Faisal Khan 2022-02-10 19:26:21
Sai Prakash 2022-02-10 18:09:48

Check the column names in the database table because Name and name are different

Arjun Acharya 2022-02-10 19:33:35
I want to know which is most important laravel blade or vue apilaravel
tedjimenezm 2022-02-10 20:09:19
Arjun Acharya 2022-02-10 19:33:35
I want to know which is most important laravel blade or vue apilaravel

It depends, needed quick, simple or building an mvp? blade, something more complex I go for vuejs using inertia.

Robin Thakur 2022-02-10 21:45:57
Arjun Acharya 2022-02-10 19:33:35
I want to know which is most important laravel blade or vue apilaravel

Both at use level

MaulikRaaj Rathore 2022-02-10 21:46:45
search in google
rutuart and first official website
👈 visit now
this website in Laravel

For any Web Development
If any one need to create website or any thing ping me personal

Works :
1. Websites
2. Landing Page
3. Service Page
4. Great Designs Options
5. Add in Google with basic SEO

BIRUK_WEBi 2022-02-10 22:34:27
web design 2022-02-05 22:13:48

use dark mode you

itsAxton 2022-02-10 22:45:13
laravel_discuss-107807.jpg
does anyone know how to grab values from this two relations and sum ?
littlefish111 2022-02-10 22:47:02
itsAxton 2022-02-10 22:45:13
does anyone know how to grab values from this two relations and sum ?

$baseTax, $locationIndex?

littlefish111 2022-02-10 22:47:16
{{ $baseTax }} or what you mean?
DesolatorMagno 2022-02-10 22:48:00
You can use a Join for that and a sum raw, there is also the option of a foreach and just sum it.
itsAxton 2022-02-10 22:51:11
DesolatorMagno 2022-02-10 22:48:00
You can use a Join for that and a sum raw, there is also the option of a foreach and just sum it.

how would that look like ?
and is that okay for a complex calculation case

itsAxton 2022-02-10 22:51:34
somethink like price, penalties, etc ?
DesolatorMagno 2022-02-10 22:56:01
Working directly with database will be the more efficient way, but you need to know how to do it, but as long as you get the data you can calculate anything.
itsAxton 2022-02-10 22:56:41
itsAxton 2022-02-10 22:45:13
does anyone know how to grab values from this two relations and sum ?

imagine if “baseTax” will bring 2 as quantity and “locationIndex” will bring 2$

itsAxton 2022-02-10 22:57:30
DesolatorMagno 2022-02-10 22:56:01
Working directly with database will be the more efficient way, but you need to know how to do it, but as long as you get the data you can calculate anything.

what do you mean, work directly with database ?

DesolatorMagno 2022-02-10 23:01:33
itsAxton 2022-02-10 22:57:30
what do you mean, work directly with database ?

Exactly that, after you do a get, first, all, etc. You get the data from the database and them you are working directly with it, any previous condition you make is handle by the db engine, if you can’t understand the best would be to just read about it online.

itsAxton 2022-02-10 23:04:03
ok thanks
marcosjoao_btu 2022-02-11 02:36:56
Hey guys!
Do you have any tutorial to use the slug in Laravel 8? I’m managing to generate the slug but I’m not able to pass it to the route. It is giving error 404.
bsamaasi 2022-02-11 04:10:49
marcosjoao_btu 2022-02-11 02:36:56
Hey guys!
Do you have any tutorial to use the slug in Laravel 8? I’m managing to generate the slug but I’m not able to pass it to the route. It is giving error 404.

Use model slug while defining route….

e.g: “posts/{post:slug}”

Adeyemi Omooba 2022-02-11 06:14:11
Referral link commission on a laravel based script (hyip pro) not working… Please can someone help me out please
Adeyemi Omooba 2022-02-11 06:14:48
2022-02-07 23:00:48
Import data from a Web page in Excel
Join → @iGram

Referral link commission on a laravel based script (hyip pro) not working… Please can someone help me out please

|