Тёмный

Laravel 8 tutorial in Hindi - Post method API 

Code Step By Step
Подписаться 314 тыс.
Просмотров 21 тыс.
50% 1

In this laravel 8 hindi tutorials, we learn what is the post API and how to make the Post API with a database in a simple way. This video is made by anil Sidhu in the Hindi language.
Laravel restfull api tutorial
steps of video
API With Post Method
Why we use POST method
Setup postman for POST API
Code for Post API
Test API
Laravel 9 in hindi
Interview Question
Laravel latest tutorial in hindi playlist • Laravel 9 tutorial in ...

Опубликовано:

 

11 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 35   
@codestepbystep
@codestepbystep 2 года назад
Please support me by subscribe, like and comment :) thank you
@NareshKumar-xf6rl
@NareshKumar-xf6rl 4 года назад
POST Request can be used to submit a web form or upload a file, but it is critical to ensure that the receiving application resonates with the format being used. The Content-Type header indicates the type of body in the POST request. HTTP POST method is used to send data to a server to create or update a resource. HTTP POST request provides additional data from the client to the server message body. POST request parameters can’t be saved in browser history, can’t be bookmarked, has no restriction on form data length, cannot be cached, and is more hack-proof. POST method's data will not be visible in the URL.
@kaziovesh9798
@kaziovesh9798 3 года назад
bro mere project me 1 error h can u help me to solve my error???
@NareshKumar-xf6rl
@NareshKumar-xf6rl 3 года назад
@@kaziovesh9798 What's the error?
@kaziovesh9798
@kaziovesh9798 3 года назад
@@NareshKumar-xf6rl there was a problem in products view.. when we delete parent_id in category table like we delete t-shirt then product.blade.php showing error... trying to get property "category_name" of non-object (view : products.blade.php) 1) sir i put a condtion in categorydelete if i delete category_id that product which belongs to category_id deleted here's that condition [ Products::where('category_id',$id)->delete(); ] 2) if I delete main category like I delete t-shirt than subcategory(Casual t-shirt) also delete here's the condition [ Category::where('parent_id',$id)->delete(); ] but sir error is comming when i delete parent category like i delete t-shirt than in product table category_id which belong to subcategory in category table not delete... like if u delete (t-shirt) in category table subcategory(Casual t-shirt) will also delete in category table.....but in products table subcategory(Casual-t-shirt) not delete....how can we fix that.. ashfaq alam and me also facing same issue and comment in gruop with error photo...plz sir solve that problem i hope u understand the error
@kaziovesh9798
@kaziovesh9798 3 года назад
if u help me than plz contact me...i give u contact number or anydesk or teamv iewr id to solve my problem
@NareshKumar-xf6rl
@NareshKumar-xf6rl 3 года назад
@@kaziovesh9798 I don't know what is your table structure. I think you have three tables ( 1.category, 2.subcategory, 3. Products ). First you get id from subcategory table using category_id. When you have subcategory's id then you can delete your products which belongs to subcategory id in products table. And after that write delete code for subcategory using category_id and after that write delete code for category based on id. I think this will help for you. This is my observation.
@anamikakamal7997
@anamikakamal7997 3 года назад
Your understood every video is very well understood Thankyou so much anil sir
@gandhiravi4103
@gandhiravi4103 2 года назад
greate sir,good explain step by step
@syedmohtashim6292
@syedmohtashim6292 2 года назад
Good And Easy Lecture Sir
@ratul.555
@ratul.555 3 года назад
Answer of interview Q: Get method shows data on the URL which is not secure. For that reason Post method using to save data in the database.
@akSingh_120
@akSingh_120 Год назад
We can use get method instead but post method is used to send data with security and post method is also large in size too.
@Preeti-zz2sg
@Preeti-zz2sg 2 года назад
best videos i found on internet for laravel thank you so much............. ANIL SIDHU
@InspireHour
@InspireHour 2 года назад
But in general terms GET is used when server returns some data to the client and have not any impact on server whereas POST is used to create some resource on server.
@ronakrawatofficial
@ronakrawatofficial 3 года назад
best effort
@pradipbasel5828
@pradipbasel5828 3 года назад
thank you sir owsome tutorial
@akhileshprajapati5709
@akhileshprajapati5709 4 года назад
Tq sir plzz project ka bhi video banaeyega
@CodingEscort
@CodingEscort Год назад
make api projects bases in laravel
@Snehal7862
@Snehal7862 3 года назад
Sir API ko form se data leke test kr sakte hei?
@techjitendranadol9876
@techjitendranadol9876 3 года назад
Symfony\Component\HttpKernel\Exception\MethodNotAllowedHttpException The GET method is not supported for this route. Supported methods: POST. route::post kia fir bhi error aa raha h
@akhileshprajapati5709
@akhileshprajapati5709 4 года назад
👌
@sitararafaqat
@sitararafaqat Год назад
interview Question: Get method shows data on the URL which is not secure. For that reason Post method using to save data in the database.
@rajatpatel1823
@rajatpatel1823 2 года назад
How can we post XML/cXML files to the local Laravel storage or database?
@Abidkhan
@Abidkhan 2 года назад
in postman error is coming that Integity constraint violation 1048 column name cannot be null, not understanding how to resolve this. even i use your code step by step but still this error come
@adityamohan8870
@adityamohan8870 Год назад
I've gotten the same error. For me, it was solved when I did the following: In Postman, click on body, select raw and select JSON language from the dropdown menu. The language will be text as default, so its crucial to change it to JSON.
@smitshah1110
@smitshah1110 Год назад
@@adityamohan8870 In json format You can pass Field name and value in Double quotes to solve the problem Like this { "Name":"BVN", "Info":"false" }
@maheshbhandari5779
@maheshbhandari5779 4 месяца назад
I am getting 419 error using postman. can some one help me?
@snehaadhav10
@snehaadhav10 3 года назад
in postman error is coming that Integity constraint violation 1048 column name cannot be null, not understanding how to resolve this.
@Abidkhan
@Abidkhan 2 года назад
same error can u tell me how you sol ?
@ibilalkhilji
@ibilalkhilji 2 года назад
Enter JSON data in proper format { "name":"Demo", "member_id":"25" } Also check whether your header is set to content type: application/json
@aneetapal1386
@aneetapal1386 2 года назад
Error while executing in postman : Illuminate\Database\QueryException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'name' cannot be null (SQL: insert into `devices` (`name`, `member_id`) values (?, ?))
@adityamohan8870
@adityamohan8870 Год назад
I've gotten the same error. For me, it was solved when I did the following: In Postman, click on body, select raw and select JSON language from the dropdown menu. The language will be text as default, so its crucial to change it to JSON.
@smitshah1110
@smitshah1110 Год назад
In json format You can pass data in Double quoters to solve problem