Skip to content

Call to a member function notify() on null in Laravel 8

I want to send an SMS to a mobile phone (if he had already turned on the two-factor authentication system). So at LoginController I added this method: And this loggendin method is inside of a trait called TwoFactorAuthentication, which goes like this: Now the problem is when I want to log in, this message app…

Why xdebug 3 is not loaded?

I have restarted nginx and php7.4-fpm. xdebug 3 looks like is installed based on this: Ini directories from phpinfo(): Loaded Configuration File /etc/php/7.4/fpm/php.ini Scan this dir for additional .ini files /etc/php/7.4/fpm/conf.d Additional .ini files parsed /etc/php/7.4/fpm/conf.d/10-opcache.ini, /etc/ph…

How to write text with opacity on a picture in PHP?

I’m writing a text on a picture. So far everything is fine, but I have to lower the transparency or opacity value of this text. I tried the following methods for the opacity value, but I couldn’t get any results. Actual result : https://prnt.sc/vy8axf Expected result : https://prnt.sc/vy8cnz Answe…

Check if PDFTOHTML is installed on server

I’m trying to check before running a php script if pdftohtml is installed on server. Is there a way to check if pdftohtml is installed on server (linux or mac) from within the code. I’m looking for something similar to function_exists() Answer Perhaps, the following will solve your case: which ret…

How to carousel in loop?

I am trying to loop carousels with class “active” first item here is my code I trying to put active item in the loop too. Answer You can use $loop->iteration==1 as said in laravel blade doc inside the foreach:

Default to an option on a dropdown option

I’m trying to get a dropdown menu to default to a certain value depending on an employee number, I have managed to get it to say it but it’s not the right option as the options are pulled in from on MS SQL server, so it just created 2 options for ‘Labour’ for example, there’s the…