I have a registration form that will be used to register new users. My users are called “Clients” so I have two tables in mysql database (“clients” table and “users” table). I’m using Laravel 7. I would like to insert Clients data (first name, last name, email e.t.c) to both database tables at the same time during registration. I have
Tag: laravel-7
How to edit Laravel 7 AbstractHasher or BcryptHasher?
I’m having some problems trying to extend or change a part of the Laravel Framework. Simply I cannot figure out where I can add or edit so that my changes will not be made in the vendor folder. Essentially my issue was implementing Password Reset functionality to my React/Laravel application. I use inertia to post the reset password form, and
How to call sub blade file inside the main blade file Switch statement in Laravel?
I need to call the external .blade file inside my main .blade file switch statement, I alrady used ‘include’ but it’s not worked inside the script tag anyone can help me to do this..? Answer I solved my problem, thanks to those who help me.
PHP Laravel : $request->hasFile() is not working
I have a form where i get the title,content … and an image. When i dd($requests->all());, It returns the following which is correct. Here is my code for image processing: But the img DB table field gets null. The if($request->hasFile(‘imagePost’)) is not getting the field. What have i done wrong? Answer You are modifying file object before you check it
Trigger PDF Download PHP – Laravel 7
I have a simple report page, and I am using Laravel 7 to build it. I want to trigger auto-download a PDF with that view. What would be the most lightweights I should look into? I did a quick Google, and I saw so many options. I decided to try this and did all the steps, below is my final
Laravel Redirecting multiple pointed URL’s [closed]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations. Closed last year. Improve this question I have a live site that is going to have other URL’s
Get API over VPN with PHP [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed last year. Improve this question I have a question with my problem. I have a task where I want to get the REST API but the API is through a VPN.
How to show specific order details and all products which belongs only to that specific order on same view
How to show specific order details and all products which belongs only to that specific order on same view? Trying this, but getting empty array when doing dd(). OrderController: web.php Product.php Order.php Answer I would suggest to change the name of your route param to id to consistency and readability In view generate url for your route as And in
Laravel Eloquent. When using With(), how can I pass data to the Model?
My db structure is Profile ID .. Profile_row ID Name: eks “First_name” Content: eks “James” Profile_id: 1 In my controller I do this: and my Profile Model looks like this And I get a nice nested list with profiles, and every profile_row where name=first_name under. But how can I send a argument from the controller to the Model where I
Laravel Sync username into pivot table
I have an extra column for usernames in my role_user pivot table, how can I sync the username with the roles ? role_user pivot table I need to sync the user name in the name field This is the update …