I’ve setup Docker with a custom Nginx/PHP image for my Laravel app. I’m serving it via Traefik as I’m hosting multiple sites on one machine. Nginx only returns the Welcome to Nginx page when I load up …
Tag: php
Laravel validate regex not allow kanji char
I want to validate a form input which not allow input kanji char using Laravel validate rule. How to do it? This is what I did: public function validationRules() { return [ ‘name’ => ‘…
When Generating URL Characters Being Arbitrarily Moved
Received this from a customer, our password reset emails normally generate correctly, however what (in code) looks like this:
server.’/password?email_token=…
add html in the ‘help’ parameter of the formbuilder
I use the formbuilder in a Symfony project. I’d like to use as much as I can the {{ form_row(form) }} in my twig template to avoid writing errors, label, help and widget myself. In this particular …
add identifier to each page on site
So my website has multiple pages where I want people to have an option to send us a message. I already have setup a php mailer but all the mails have the same layout. How can I make to where if the message has been send form a specific page I add specific words to the mail? The mailsender works
How to serve a video from a file outside the web root in PHP to a html5 video source
I currently have a file called index.php in my web root folder/var/www/html/ which should load an image and a video in a directory outside of the web root. The image and a video file is located …
Auth::check() returns false after successful login attempt
I’m trying to make a custom guard and I am successful, but when I attempt a login using the guard the $this->attemptLogin($request) returns true but after directly afterwards the Auth::check() …
How to set release limit while using php-deployer?
I am using PHP deployer 6.6.0 to deploy Laravel based websites. Every time I deploy it creates a new release. Currently, I have more than 10 releases and it’s eating up a lot of disk space. I don’t want to keep more than the last 3 releases and need the older releases to automatically roll over. H…
About auto refresh a part of in the php file
I want to test auto refresh in a php file. The following I’d the code. However, I cannot do it. I don’t know what is the problem? TEST </head&…
Compare two values coming from diferent queries
I have a local dashboard where I see data from my software. I have a function which tells me the total of Active Users in real time. I’m trying to create a function which let’s me know the the record …