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
Tag: crud
How can i automatically save the image inside a website when i click the add to cart?
how can I automatically save this pizza image, and save it to my local folder? I can easily save the other information, but I’m encountering automatically saving the image itself in a local folder? I’m fetching the other data from different table, but the I can’t save the image itself. I’m have no intention of using foreign key for no.
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 update profile with current image when an image file is not chosen in the edit form? I am using Laravel 8
Whenever I try to only save profile changes for the profile description and url in the edit form, I get an error because I didn’t choose an image file also. I would like to be able to update a profile with current image when an image file is not chosen in the edit form. The error I keep getting is:
What are the CRUD Commands that have to be run in Tinker with Laravel 8
When I run the known tinder CRUD Commands in Laravel 8, they aren’t working What I ran was the Create and Find commands $user = new AppUser; AppUser::all(); But they aren’t working, I knew that in …
Laravel 5.8, CRUD when editing image didn’t show up (blade)?
I try to create edit blade to get old value from database. the title successfully appears, but the image and body (textarea) didn’t appears, here is some code of my edit.blade.php <form action="{{…
Laravel Backpack – Set extra attributes before page save
In my PageTemplates.php I have a field like this: Now I would like to save also the latitude and longitude of the address they give in (if it can be found). I’ve copied the PageCrudController and changed the config in config/backpack/pagemanager.php to: In my store function I have: But what do I place in the if statement? How can I
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