Skip to content
Advertisement

How to redirect to specific URL?

I have a route for tenants name like that: And I want to make the default of my domain start with the word “site”: My code: The problem that I’m facing with this code now is when I open the domain it redirects me to tenantName route, not to the home page that I made! How can spreate the route

Website is throwing errors out of nowhere?

I literally don’t know what is causing this error, maybe one of you do. First of all I would like to state that, I have a two sites up and running with the exact same source/db, one is working fine. So out of nowhere errors came up on my second site (see picture below) causing Dropdown menus, charts and the

PHP reg expression to detect variable in string [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I could never figure out reg expressions, no matter how hard I tried. Need some help pretty please: I want to

Failing to load Xdebug when running PHPUnit Tests

I have been having a option for a few days. When I try to run a PHPUnit test I get a message saying failed to load Xdebug. I have tried to reinstall, change filepaths etc but I am getting nowhere. Hoping somebody can help me out 🙂 Answer Failing loading xxxx.dll is an indication that PHP can’t load the extension

Trying to get property name and id of laravel payload

I have this JSON payload below and want to get names and ids from the payload. However, l cannot object names and ids from the payload. Decode JSON Api json payloads Answer Use json_decode to decode the json to an associative array, then access the elements of the array as you would any other assoc array. It looks as though

PHP: Explode comma outside of brackets

Below is a string I’ve tried to explode only on comma’s outside of the first set of brackets. Wheat Flour (2%) [Wheat Flour, Wheat Gluten, Calcium Carbonate, Iron, Niacin (B3), Thiamin (B1), Ascorbic Acid], Water, Yeast, Salt, Vegetable Oils (Palm, Rapeseed, oils (sunflower, rapeseed)), Soya Flour 1st Attempt Which returns: 2nd Attempt Returns: The first attempt is the closest I’ve

Advertisement