how

Submit a question

Submit a new question to our website

how

Questions

Find answers to your question

how

Paid Support

Get paid support from out dedicated developers.

Latest Questions

Explore the latest questions and answers asked by our top developers.

REST API JWT Tokens [closed]

I have been trying to implement JWT Token in my REST API’s and followed every step as mentioned in the article on this link (PHP – JWT authentication tutorial) I got the JWT token but whenever I am trying to verify it I get an error please help me out with it This is the […]

By Anup Patel
Published
Categorized as jwt, php, restTagged , ,

string is not defined when echo text in php-js

I’m a very noob to PHP. Below is my code <script> let x = <?php echo "AB"; ?> console.log(x) </script> Log says that ‘ABconsole is not defined’. Is there anything else I missed?? Thanks, in advance. Source: Ask PHP

By Boolhwi
Published
Categorized as phpTagged

Search multile words name in columns using laravel

Is there any better solution to the code below, I want to search names but first name and last name is different columns as of now I have this ->where(function($query) use($q){ $names = explode(" ", $q); if(count($names) == 2){ $query->where(‘fname’, ‘LIKE’, ‘%’ . $names[0] . ‘%’) ->where(‘lname’, ‘LIKE’, ‘%’ . $names[1] . ‘%’); } else […]

By EasyWay
Published
Categorized as eloquent, laravel, laravel-8, mysql, phpTagged , , , ,

Allow requests between servers in same region

I have to sites (site A and B) hosted on AWS EC2 in the same region (eu-west-1a). It get a time-out error when I run the following PHP code from "site A": $url = ‘https://site-b.example.test/data.php’; file_get_contents($url); Error: failed to open stream: Connection timed out It works just fine when I open the url in a […]

Laravel : get only the clicked image to display, and not all of them

Yo everyone! I’m actually working on a lil’ project to learn laravel and here is the thing I struggle to achieve : I want the image I click on to be displayed in a view, but not all of my images (my images are stored in a database). I think the code is pretty simple, […]

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq