New Laravel Project From Existing Files for Laravel on Existing Homestead

I already set up one project on Homestead using Laravel and have been working on it. Now I want to set up a second project also on Homestead and using Laravel, but want a separate setup. I already updated my Homestead.Yaml and did vagrant provision –reload:

Now just set up with local server on local root (default option when setting up project from existing files).… read more “New Laravel Project From Existing Files for Laravel on Existing Homestead”

Mark Sanford – a Good Boomer on Our Debt

Finally, our growing debt makes the American dream more elusive, and in doing so weakens us all. A trillion-dollar deficit is nothing more than a deferred tax bill for $1 trillion. For a country that was in part founded on the notion of no taxation without representation, how does this pilfering of future generations’ wealth possibly make sense?… read more “Mark Sanford – a Good Boomer on Our Debt”

Programmer Terror

is that feeling you get when you realize you fired off a process that doesn’t stop when you close the browser, doesn’t stop when you restart the IDE, and you have to shut down the machine itself.

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”