Category "php"

Cant install botman for Laravel

I wanted to try to create a simple chatbot web-app using Laravel Botman. I've created a new Laravel project but when I try to install Botman through the termina

PHP libsodium change predefined constant

I am trying to change the below libsoium predefined constant SODIUM_CRYPTO_AEAD_AES256GCM_NPUBBYTES from 12 to 20 and I am unable to find where this is being se

Exporting data as two CSV files with PHP, but its stored in one file and also containsHTML tags

I wrote a function in PHP which writes the elements of a two-dimensional array into a CSV file. function downloadCSV($data) { header('Content-Type: text/csv

Laravel - Is it possible to validate a get wildcard Request with Illuminate\Foundation\Http\FormRequest;

I have a GET route with a wildcard day. This day wildcard is a string like so: 20220507 (YYYYMMDD). After validation the string I wish to make a proper response

Attempt to read property "id" on null - description.blade.php

I have a problem with id i get error Attempt to read property "id" on null (View: /resources/views/admin/Attendance/description.blade.php) view code that show

Agora cloud recording S3 Integration

I have been trying to implement the Agora cloud recording functionality for a few days with some difficulty. The API documentation is difficult to work with, an

How to extract id from json response array

How to extract id from this response. I tried like this But return blank page. Below is the response what I'm getting. <?php $res = json_decode($sentMessage

How to add unique ID when inserting data in AWS Timestream?

I am inserting some data in Timestream but I cant figure out how to have a unqiue ID. $date = new DateTime(); $time = strval($date->getTimestamp() * 1000);

Selenium keep php file from loading

I have a problem that gave me nightmares for couple of days. I am trying to run some python script from a PHP file. I am using wamp64 for hosting. Python script

add ssh on arch linux [closed]

I am trying to access with ssh in to bit bucket . I am able to access using my key - id_rsa . But I am trying to make a different key for bit

Adding product description to shop page

I want to add the product description / Additional information (dimensions and weight) to my client's products on the shop page. It's an online art gallery and

JavaScript - Character counter for multiple textareas

I have a form on my website with several different textareas. HTML/PHP foreach ($bla as $blabla) { .... other php-code (not relevant) .... echo '<textare

Problem in message section in orders of product prestashop 1.7

Somebody know in what phisical file in prestashop 1.7.5 (TPL) appear the message sections of product orders? i need modificate the line where show the message (

Laravel merge image by path to Request for validation

I'm very new to Laravel. I'm trying to integrate temporary image upload to my forms. What I want to do. When the user selects a image the image gets uploaded te

php curl login not work, code tested with other site

I have a problem with curl remote login, i don't know what the issue , tried the code with other site working but with my customer website not working function

how to share the variable to different function on the same class

I want to print what I input in wordpress, but I still not get the variable from different function in the same class The following is my code: class Test{

I have a error to pass my datta from blade file to Controller

This is my code in blade file : <form action="{{ route('user.delete') }}" method="Delete" class="row g-3"> @csrf <div class="col-a

Laravel Lighthouse-PHP GraphQL (Server cannot be reached)

I'm using Laravel - Lighthouse-PHP GraphQL server, and when I deploy it to production, I have to write public in the URL in order to work: https://example.com/g

Paytabs php integration

Im trying to get Payments working using the PayTabs gateway in native php. It works, for the most part. the main issue im having is the callback file, I've mad

Return html wrapped template part Ajax call Wordpress

I've built a custom post filter in Wordpress using Ajax. function filterPublications(filters, filterType) { filters = JSON.stringify(filters); $.ajax({