Category "php"

Calling openssl_pkey_export() twice with the same passphrase gives different results

I have basic knowledge on asymmetric cryptography but I'm a newbie regarding OpenSSL PHP Extension and I'm confused after executing the following piece of code

Error Class "Laravel\Fortify\Features" not found

I have ecommerce laravel application. Laravel Framework 8.83.8 PHP v8.0.1 I have done php artisan config:cache php artisan route:cache php artisan view:cache

MySQL upgrade causing unexpected results on simple WHERE clauses

I'm upgrading my Laravel app to use MySQL 8.0.23 from 8.0.20, and I see an issue with WHERE clauses that produce unexpected results. SELECT * FROM guilds W

What will the best solution for this multiple optional filter?

These are all optional fields, so will I have to write multiple queries with conditions or is there any way to handle this using Laravel? What will be the query

Symfony Error: "An exception has been thrown during the rendering of a template"

I am trying to include <link href="{{ asset('css/mystyle.css') }}" rel="stylesheet"/> in my twig file and render it. But it gives me Uncaught P

Insert a DIV after the 6th product only once in WooCommerce category archives

I would like to show some content after the fifth product of a product category. Based on Add content in between product rows in WooCommerce archives answers co

PHP Imap , php 7.4.3 on mac osx catalina

This is officially driving me nuts! I'm trying to work with a laravel package for imap functions and I've installed everything there but I get a missing class e

How to connect to MSSQL Server with PHP from Ubuntu 18.04?

I want to establish a MSSQL Connection from Ubunutu 18.04. It was quite hard to get this set up, but know it works so far that I can use sql_srv class or pdo cl

Symfony run hint kernel.secret parameter not found

error message: The service "uri_signer" has a dependency on a non-existent parameter "kernel.secret". Did you mean this: "kernel.charset"? index.php de

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

i'm trying to run a video through php file. it's worked.but the problem is that when i try to go to special time in video it replay the video from the beginning

Doctrine entity listener not firing using YAML configuration

When i use the following annotation within an entity, the listener for it is called successfully. The problem with using the annotation rather than configuring

ternary operator not working for multiple code

So I am trying to color code if a value is either AWOL, Active, or On Leave I have been looking into ternary since my code is inside an echo already, since the

PHP Startup: Unable to load dynamic library, when running unit tests

when I try to run my unit tests, I get this error PHP Warning: PHP Startup: Unable to load dynamic library 'bz2' (tried: \xampp\php\ext\bz2 (The specifie

How to change the "Maximum execution time screen" on Laravel and show a custom message instead

My application has a complex script that when some type of error happens it exceeds the maximum execution time instead of returning the error, that It's okay fo

Laravel display validation error

I try use this code: @foreach($errors->all() as $error) <li>{!! $error !!}</li> @endforeac

Using spatie/media-library, how to rename a collection of uploaded files?

I would like to rename a collection of uploaded files, but when I use addAllMediaFromRequest() I can't retrieve information from the files. In this example; I

How to change PHP-FPM port on Mac

I'm not using php or php-fpm, but it's hogging port 9000. I need port 9000. I'd like to change the port. I changed it in /etc/php-fpm.conf and /etc/php-fpm.d/ww

Laravel Blade checkbox not checked

I'm passing variables into the blade from controller. This is my code from controller: $offerConditionsData = Offercondition::where('offerId', $id)->where('

TradinView problem with reading webhooks and running the page script

I have the following problem: In the TradingView application, I have alarms set and sending them via the URL Webhook to the address http://mpietraszewski.cba.pl

Symfony\Component\Debug\Exception\FatalErrorException Trait not found in Laravel project [closed]

I have create a new trait within my Laravel project, but it doesn't work. First I have created a folder called App\Traits and my trait filenam