Skip to content

Tag: php

Getting 404 in laravel 6.x

I have created ApiController in AppHttpControllersApiv1 Also created auth using laravel/ui Default created function for front end working perfectly. But issue is when try to call the …

When do I need u-modifier in PHP regex?

I know, that PHP PCRE functions treat strings as byte sequences, so many sites suggest to use /u modifier for handling input and regex as UTF-8. But, do I really need this always? My tests show, that this flag makes no difference, when I don’t use escape sequences or dot or something like this. For exam…

How would I correctly parse this PHP?

I know the PHP part of this code is wrong but I can’t figure out how to write it correctly. Can someone give me a hand? function add_last_nav_item($items) { return $items .= ‘
<a class="…