Category "php"

Laravel Spark - Defining a free plan

I am using Laravel Spark Next and I am trying to create a free plan. My application is charging users "Per seat" (# of projects) My application, however, will a

PHP Get value from JSON [duplicate]

Let's say I have this JSON: { "achievement": [ { "title": "Ready for Work", "description": "Sign up and get validated",

Laravel Docker Call to undefined function MyActionFunction

I'm new to docker and laravel. I'm trying to dockerize a laravel application, the source code is not mine. I used Sail for local tests, but now I want to build

How can i get the value of multiple anchors in javascript which are generated from php and send the value to another Php page using AJAX

Here is how my anchors are displayed on the web. I need to get the value of the anchor and send it to another PHP file, so i would use the value of the anchor i

How can i call a function that executes an fpdf based on the choice of a form selector?

I am trying to create FPDF's with different formats, which are inside a file of functions that are called through a form on another page inside the field select

Dynamic dropdown Ajax PHP request

I'm trying to make a dynamically populated drop down in a form for location selection. I have scoured stack in other posts that ask similar questions and some w

Can I redirect the user to another page while uploading files to the server?

I have a php script that: compresses and sends to the server images uploaded by the user, sends the text inputs as email, and then does a redirect with header('

Unable to create lockable file - Laravel 8 & PHP 8

I'm stuck in a Laravel project, I've been using laravel a lot of years and never happened this. I'm using Vagrant (as always) and only happens this with PHP 8,

Basic Authentication with CURL/PHP

I'm trying to do a basic API Authentication using PHP and CURL and I keep getting the error "no Route matched with those values". Here is what the API docs are

How to install mCrypt extension for php in macOs xampp

I am new to macOs and i have a project in which it has many extensions needed all are working fine only mCrypt is off. can anyone suggest me that how to turn it

Nginx downloads php files

I read about this problem and tried many fixes, but none has worked. I use Ubuntu 22.04 and PHP 8.1. My Nginx config file is now ## # You should look at the fol

how to validate form data in codeigniter 4

i am new to codeigniter 4, i am currently building a registration form. when i submit reg form it give error of required fields even if i fill all fields with c

How to solve "Error: MySQL shutdown unexpectedly" In Xamp?

When I open XAMPP and click start MySQL button and it gives me an error. I had started it just before, but now it isn't working. It given error below in xammp E

Error converting docx to pdf using Unoconv

I am trying to convert .docx files to .pdf files using Unoconv. Libreoffice is installed on my server and the script works for another website on the server. Us

Get WooCommerce products from specific category

I am trying to insert a WooCommerce element to display "products" (courses) from a specific category into a page. I had also to hide these products for this spe

Laravel whole batch is cancelled if one Job fails

I'm working on a Laravel project that uses the Batching feature to batch a bunch of Jobs into a Batch. In my context, I have around 50 jobs in a batch, each job

How to fix Call to undefined method App\Models\TableName::factory?

I have created a seeder that populates data in Laravel but was having a BadMethodCallException Call to undefined method App\Models\Project::factory(). Why is th

how to solve laravel/horizon v4.3.3 requires ext-pcntl problem

I'm using Windows operating system. I've also tried with these solutions available here: link 1) PHP pcntl module installation link 2) How to install PCNTL exte

How to get R and S values from ECDSA signature using PHP

I am working on Signature of data using ECDSA from Starkbank library and I can get the base64 format of the signature value MEUCIALlD6Xsd0Xdj7XTrD2gP4Q3PlssTxLO

Use Product Variants Select in Cart Prestashop

I'm developing a cross sell module that will display products in cart that you can add to cart by clicking the button add to cart. I need to take consideration