In my regular Laravel project I have both regular .php files with classes and .blade.php files for the templates of my project. When searching in PHPStorm with a file mask on, I have the option to filter with *.blade.php to only see my blade templates. But when I filter with *.php I find both .php files and .blade.php files because
Tag: phpstorm
Xdebug 3 not included in phpinfo()
I have a problem with Xdebug on Mac OS using Big Sur. Below, I will explain what is happening. When I run phpinfo() – I don’t see a Xdebug section at all. When I run commands such as xdebug_call_file() it throws a PHP Fatal error: Uncaught Error: Call to undefined function error. Here are all the configurations: php -v: PhpStorm
XAMPP localhost – Access denied error 403 after changing directory
I’m using php storm for a project and I tried to change from the built in web server to the apache one as it messed with my url redirections. Using a mac, I changed the directory to this one : After restarting the server, typing localhost in the search bar should direct me to the index.php file but I get
How to annotate Laravel Collection elements during iteration
I was thinking about how to annotate types in PhpStorm. I believe PhpStorm is using Psalm to resolve types, but I can’t find how to annotate type to get suggestions here: $row in my app will always be Collection object and I want to have it marked somewhere here with annotations. Does anyone have an idea how to accomplish that?
PhpStorm Expression Expected Using PHP Short Echo Tags Inside HTML Attributes
I found something similar to this while doing a code review, and I don’t see what is wrong with the code (shown as a syntax error by PhpStorm). The problem is using PHP short echo tags in an HTML attribute. PhpStorm doesn’t seem to have a problem with the usage in the label’s for attribute, or the input’s id attribute,
How to get PHPUnit testing working with a function that returns an IP?
I’m just new to TDD and I’ve installed PHPUnit with PhpStorm. I have this class and function, and I want to test for the IP address match. I’m trying to create the code for the test, and I’m not sure what to put in. I have tried But $test is undefined obviously. What should I do next? Tried suggestion given
illuminate vendors not found in PhpStorm since Laravel 8.36 upgrade
Since I’ve updated to Laravel 8.36 PhpStorm can’t autocomplete and doesn’t find the vendors… what’s the problem ?
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
How to find and import default CSS tags from PHP file
I have a report generation page, that is PHP based, but I can’t use basic CSS classes in it for some reasons. For example, the i-column-header class doesn’t do anything. I am Using PhpStorm and if I go into a CSS file, I see that it has the classes, and it says “from html”. I am not sure where the
PhpStorm: Change URL after changing DocumentRoot
I am currently running a Laravel 8 project and my DocumentRoot points to the public folder. So if I type http://localhost/ in my browser it shows me the public folder because I have set up my …