Skip to content
Advertisement

Tag: crud

Update not working in Resource Controller for Laravel 8

Previously, I was trying for a few hours to get my “destroy()” function working. Which would sound ridiculous to most of you but simply putting “method(“DELETE”)” in the form made it work, which I still don’t why. Now, I’m stuck with the update() function. Once I click update, the page just reloads and does nothing. It doesn’t update the info

Search through laravel relationship with filtered date

i search data 1 (this exist in database) within date range of 13-04-2022 to 14-04-2022 (there is no data in this date range). From this query that i used on my controller still return the data that contains a keyword that i search for (data 1). What i wanted is to return collection of data with the range of the

How to correctly handle laravel form?

I want to correctly handle user store form. I consider which patter will be the most correct/popular. It is repository pattern? Service pattern? Another difficulty: User form: name, email, postal code, city, street. I want to create two models in one form: User and Address. How can I solve it? I throught about: Issues i’m wondering about: UserRequest has data

How to CRUD using PDO Connection?

I want to CRUD using PDO Connection I know how to create insert update and delete using msql_query() but I have no idea how to do that with PDO Connection. Answer Below is the example of that

Advertisement