I made a normal CRUD app with Laravel 8 , it was working fine in my local machine , but when i deployed it on Heroku , and tried to Insert a user it gives me this error : everything else (editing, updating, Deleting) seems to be working just fine it also seem to highlight this ligne in my controller
Tag: laravel
Nested Folder Dynamic Component – Laravel Blade
Trying to use a dynamic component in order to pass in a variable and get to the component file I need. However, the component files are nested in another folder inside the components folder. I’m unable to do the normal <x-foldername.file /> since it is a dynamic component. Is there a different way to go into a subfolder using dynamic
How to make route in laravel using GET Page?
Before using laravel, usually I route my page using code like this: Is there anyway that I can route my page like that but in Laravel? I prefer to use format : www.example.com/?page=schedule rather than www.example.com/schedule Answer Documentation: https://laravel.com/docs/8.x/routing
Laravel package base relationship models
in our web application we want to have a simple package base cms, for having that we have users, packages, features and user_package table on database each users can be have one package which we created user_package for that each user_package belongs to many users each user_package has on packages each packages can be have many features which we created
How to display the original data in excel whichever returns from the database in php?
I am using matwebsite for exporting excel files ,i am getting the data from the database it’s stored in the exported excel file upto this part it’s working fine .some of the values are more than 15 digits at that time it’s displaying as scientifc format for that i made some changes using columnFormats() function now it supports upto 16
How to use model equilevent normal php file => file.php without blade
If status is successful how do I use model in normal php file without using blade.If you can help with this issue, I’m very home. When the file is a blade, it cannot be accessed from outside. i need to store it in php extension.Because this file asynchronously receives post array from outside Model File Answer Laravel blade engine provides
Laravel Eloquent query siblings in same table with eager loading
I have a parent table called patients which has a one-to-many relationship with a child table called notes. (i.e. One patient can have several notes). If given a note, I would like to find other notes for the same patient. Notes are related to patients by a fk called patient_id. In SQL, I’d do this: SELECT * FROM notes WHERE
Bad hostname provided
Passport Version: ^10.1 Laravel Version: 8.77.1 PHP Version: 8.0.9 Database Driver & Version: mysql 8.0.27 I can not get access token. when I call it manual by curl it get this response. this host name is generate inside the docker container I’m test 192.168.224.6 ip of docker container but it also not work Answer if you don’t use any prefix
Nested Loop in Edit Form Blade Laravel
I have an edit form that used rowspan table and nested loop. I also have a create data form that works fine like this. I used Laravel 8 for this project. Create form But when I’m adding the value from database to create the edit form: Edit form -1 Edit Form -2 I get the sasaran, indikator, and data (questions)
Laravel model user custom binding “/users/me/xxx”
I have routes with user binding like So I can use /users/1/posts, /users/5/posts etc, and in controller it’s automatically available thanks to model binding But for current logged user I want to make possible to also use /me/ instead ID, like /users/me/posts Is there a way to make it without defining separate controller methods where I would have to find