I’m working inside a Laravel 8 project used as a REST API for a Nuxt JS front-end. I’d like to be able to require the user to confirm their password for some important actions, so in one of my controller’s am using the Laravel middleware for password.confirm but this is just returning a message to confirm a password, I’m not
Tag: laravel
How to integrate laravel8 project inside wordpress project cpanel?
I’ve wordpress project in (html_public) folder, and my domain run project fine, I want integrate laravel8 project inside the wordpress, so that both run in the same domain like That: WordPress URLs: https://example.com/wordpressHomepage https://example.com/AnotherwordpressPage Laravel URLs: https://example.com/public/LaravelPage https://example.com/public/LaravelPage/Id Wordpress && LaravelApp path in cpanel: Wordpress .haccess: Laravel .haccess in /public: wordpress index.php: Laravel index.php in App/public/index.php: please any help? Answer
file_put_contents() store files outside the public folder laravel
Hi I am trying to save file inside public folder using this file_put_contents() but in local it working fine it save file in public folder but in live server it save outside the public folder. my local URL contains public word but live URL is without public word Thanks for any help Answer You did not declare the root folder
How to show only one error message from Laravel request rules
I am using Laravel request to validate in my controller the requested data and here is my request file data I am facing two challanges first I am not able to return custom message using static function I am not able to send single message as we send in controller validation using errors()->first(). By defalut it is returning like that
PHP Carbon format to New Date() on Javascript
I want my website changed to full server-side, or with little client-side. What format was used by Carbon to Javascript Date object? Something like this? Answer You can read here for Carbon documentation, and you can format Carbon instance whatever you like
How to delete element of an array on Firestore using Laravel
I’m trying to update an element inside of an array on Cloud Firestore. I know that Firestore still don’t have the ability to update a single item of an element of the array. Instead, we can delete the entire element and then add the entire updated element again. I have managed to add entire element but I don’t know how
relations with 4 tables in laravel
I have four tables as follows. Services_cats Session_pat Invoice_item Invoice id id id id name services_cat_id service_id code patient_id invoice_id discount I need to have relations among them with one Eloquent query in Laravel. Below is what I have reached so far; I used many-to-many relations in the invoice table. And I used this code to access the four tables.
get key of multi dimension array (PHP Language)
Hi I have a problem regarding multi-dimension array. I have a set of array looking like this the array is from how do I want to get the array which the value is 0. Expected result/filter For example: if changing the index is impossible, its ok.. Thank you Answer As you are using Laravel, you could use array helper such
How to fix Error 404 when trying to download PDF file from the public folder
Have been receiving a 404 error message when trying to download a pdf file that was successfully saved. Index web PatientController Database Error page Answer
Customize email_verified_at column in laravel
I am currently working on a laravel project that needs to send a verification email. I successfully send an email but when I try to verify the email by clicking “Verify email address” button in the email it shows me the error unknown column “email_verified_at”. I don’t have rights to add or edit fields in the database. I am just