PHPStorm Laravel Not Finding Alias Class for Laravel Goutte

I installed this package https://github.com/dweidner/laravel-goutte and followed the readme instructions. However, when I put this in my HomeController:

$crawler = Goutte::request('GET', 'https://duckduckgo.com/html/?q=Laravel');
$crawler->filter('.result__title .result__a')->each(function ($node) {
    dump($node->text());
});
return view('welcome');

I got an error “Undefined class Goutte”. When I mouseover Goutte in phpstorm, it only gives me the option to create a new class, not import a facade.… read more “PHPStorm Laravel Not Finding Alias Class for Laravel Goutte”

Xdebug Setup for PHPStorm for Laravel 6.x on Windows 10

This is my log of trying to get Xdebug to work on FPM (I gave up on CLI after a couple of hours). I want it to work on the PHPStorm version of terminal so I can do everything inside of PHPStorm without going to Git Bash. This is for Windows 10 and Laravel 6.x.

These settings work for me now:

sudo vim /etc/php/7.4/fpm/conf.d/20-xdebug.iniread more “Xdebug Setup for PHPStorm for Laravel 6.x on Windows 10”

Learning About My Body

You would think I would understand my body now that I am in my mid 30’s… But I have learned a lot recently while experimenting with my diet and fasting and supplements.

Today, I learned what happens when you eat way too much fiber. You get a horrible stomach ache. Its not constipation since had I had multiple big bowel movements last night and this morning.… read more “Learning About My Body”

The voice of sadness is censored as sick. What if it’s sane? | Aeon Essays

https://aeon.co/essays/the-voice-of-sadness-is-censored-as-sick-what-if-its-sane

I think the essay is right and wrong. I think that people genuinely can only look at things from a positive or negative point of view, rarely neutral. I think there are lots of people and lots of times for lots of people where they’re happy and things are really good. I think there are lots of people who objectively go through very bad times and are very depressed.… read more “The voice of sadness is censored as sick. What if it’s sane? | Aeon Essays”

Political polarization by George Washington

In his farewell speech at the end of his presidency, George Washington warned about the dangers of political polarization:

This spirit, unfortunately, is inseparable from our nature, having its root in the strongest passions of the human mind. It exists under different shapes in all governments, more or less stifled, controlled, or repressed; but, in those of the popular form, it is seen in its greatest rankness, and is truly their worst enemy.read more “Political polarization by George Washington”