# Junior Grossi

Senior Software Engineer & Stutterer Conference Speaker. Happy husband & dad. Maintains Corcel PHP, elePHPant.me and PHPMG. Engineering Manager @ Paddle

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Querying and Eager Loading complex relations in Laravel

DevFeed: [Querying and Eager Loading complex relations in Laravel](<https://devfeed.tech/articles/querying-and-eager-loading-complex-relations-in-laravel-39019.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/querying-and-eager-loading-complex-relations-in-laravel/>)

Author: Junior Grossi

Published: 2018-05-07T08:00:12Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Object-relational mapping](<https://devfeed.tech/topics/orm.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Framework](<https://devfeed.tech/topics/framework.md>)

Tags: [eager-loading](<https://devfeed.tech/tags/eager-loading.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [framework](<https://devfeed.tech/tags/framework.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>)

### AI overview

A Laravel tutorial explains how to reuse the same anonymous function for filtering posts by related comments and eager loading only the matching comments through Eloquent.

### Source excerpt

Laravel is a PHP framework that uses Eloquent, a powerful and amazing ORM that allows you to do complex SQL queries in a very easy way. But sometimes you need more, and here I'm gonna give you an interesting tip that can bring you a lot of flexibility. When dealing with simple database queries in ... Continue reading Querying and Eager Loading complex relations in Laravel

## Solitary or Sociable? Testing Events and Listeners using Laravel

DevFeed: [Solitary or Sociable? Testing Events and Listeners using Laravel](<https://devfeed.tech/articles/solitary-or-sociable-testing-events-and-listeners-using-laravel-39020.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/solitary-or-sociable-testing-events-and-listeners-using-laravel/>)

Author: Junior Grossi

Published: 2018-04-30T03:01:07Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Testing](<https://devfeed.tech/topics/testing.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [laravel](<https://devfeed.tech/tags/laravel.md>), [mock](<https://devfeed.tech/tags/mock.md>), [php](<https://devfeed.tech/tags/php.md>), [programming](<https://devfeed.tech/tags/programming.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [testing](<https://devfeed.tech/tags/testing.md>), [unit-testing](<https://devfeed.tech/tags/unit-testing.md>), [unit-tests](<https://devfeed.tech/tags/unit-tests.md>)

### AI overview

A Laravel testing tutorial about testing events and listeners, comparing solitary and sociable tests. It explains that sociable tests can become problematic when an event triggers multiple listeners because a single test may cover more than one unit or behavior.

### Source excerpt

Testing with Laravel is very easy, but it can be a nightmare when the tests depend on Events and Listeners. In this post I'm gonna show you how you can simplify and improve those tests. Laravel is one of the most popular PHP frameworks nowadays, and I'd say its Event handler is one of the ... Continue reading Solitary or Sociable? Testing Events and Listeners using Laravel

## QueryFilter: A Model Filtering Concept

DevFeed: [QueryFilter: A Model Filtering Concept](<https://devfeed.tech/articles/queryfilter-a-model-filtering-concept-39018.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/queryfilter-a-model-filtering-concept/>)

Author: Junior Grossi

Published: 2018-04-23T13:50:39Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Laravel](<https://devfeed.tech/topics/laravel.md>), [Eloquent ORM](<https://devfeed.tech/topics/eloquent.md>), [PHP](<https://devfeed.tech/topics/php.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>), [Database](<https://devfeed.tech/topics/database.md>), [JSON](<https://devfeed.tech/topics/json.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [blog-post](<https://devfeed.tech/tags/blog-post.md>), [clean-code](<https://devfeed.tech/tags/clean-code.md>), [database](<https://devfeed.tech/tags/database.md>), [eloquent](<https://devfeed.tech/tags/eloquent.md>), [json](<https://devfeed.tech/tags/json.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [orm](<https://devfeed.tech/tags/orm.md>), [php](<https://devfeed.tech/tags/php.md>), [query](<https://devfeed.tech/tags/query.md>), [talks](<https://devfeed.tech/tags/talks.md>)

### AI overview

This tutorial presents QueryFilter, a model-filtering concept for Laravel applications using Eloquent ORM. It demonstrates filtering models from URL query parameters, with an example app that returns filtered posts as JSON and uses Corcel to retrieve posts from a WordPress database.

### Source excerpt

Having a clean code with single responsibility is important, and doing that for model filtering can be easy and very powerful. Believe me. This blog post is related to a talk I gave on April, 2018 on Darkmira Tour PHP 2018, in Brasília/DF, Brazil, with the same title. The slides are on SpeakerDeck. Filtering models ... Continue reading QueryFilter: A Model Filtering Concept

## Congratulations! Now you are a remote worker. Enjoy your new life!

DevFeed: [Congratulations! Now you are a remote worker. Enjoy your new life!](<https://devfeed.tech/articles/congratulations-now-you-are-a-remote-worker-enjoy-your-new-life-39013.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/congratulations-now-you-are-a-remote-worker-enjoy-your-new-life/>)

Author: Junior Grossi

Published: 2018-04-02T03:00:52Z

Content type: opinion

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Job](<https://devfeed.tech/topics/job.md>), [digital](<https://devfeed.tech/topics/digital.md>)

Tags: [careers](<https://devfeed.tech/tags/careers.md>), [developers](<https://devfeed.tech/tags/developers.md>), [interviews](<https://devfeed.tech/tags/interviews.md>), [job](<https://devfeed.tech/tags/job.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [programming](<https://devfeed.tech/tags/programming.md>), [remote](<https://devfeed.tech/tags/remote.md>), [remote-work](<https://devfeed.tech/tags/remote-work.md>), [remote-working](<https://devfeed.tech/tags/remote-working.md>), [work](<https://devfeed.tech/tags/work.md>), [work-from-home](<https://devfeed.tech/tags/work-from-home.md>), [worker](<https://devfeed.tech/tags/worker.md>)

### AI overview

This personal commentary describes the early experience of becoming a remote worker, from interviews and accepting a job offer through the first months of working from home. It emphasizes perceived gains in productivity and quality of life during the initial four to five months.

### Source excerpt

Working remotely is the dream job of most developers I know. It's a hard process but it's totally possible. Now you got the best job you could . Enjoy your new life! The beginning. The dream. Do you remember yourself some weeks/months ago? The first interview you did (maybe you're not a native English speaker like ... Continue reading Congratulations! Now you are a remote worker. Enjoy your new life!

## Open-source is about sharing and giving back. Think about that.

DevFeed: [Open-source is about sharing and giving back. Think about that.](<https://devfeed.tech/articles/open-source-is-about-sharing-and-giving-back-think-about-that-39017.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/open-source-is-about-sharing-and-giving-back-think-about-that/>)

Author: Junior Grossi

Published: 2018-03-26T03:00:26Z

Content type: opinion

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [community](<https://devfeed.tech/tags/community.md>), [giving](<https://devfeed.tech/tags/giving.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [programming](<https://devfeed.tech/tags/programming.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

This opinion piece argues that open source is built on sharing, contribution, and giving back. It encourages users to support the people and communities that maintain the software they use, including by sharing fixes and improvements.

### Source excerpt

Maintaining an open source project - even a small one - is not an easy task. The open source ecosystem is about sharing and contributing, about giving and receiving. You scratch my back and I will scratch yours. Open-source is not only a free and open software, it's a lifestyle. Working with open-source is working ... Continue reading Open-source is about sharing and giving back. Think about that.

## Degree or not degree? When is it really important?

DevFeed: [Degree or not degree? When is it really important?](<https://devfeed.tech/articles/degree-or-not-degree-when-is-it-really-important-39014.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/degree-or-not-degree-when-is-it-really-important/>)

Author: Junior Grossi

Published: 2018-03-19T03:00:51Z

Content type: opinion

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Development](<https://devfeed.tech/topics/development.md>), [Software](<https://devfeed.tech/topics/software.md>), [Computer science](<https://devfeed.tech/topics/computer-science.md>)

Tags: [careers](<https://devfeed.tech/tags/careers.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [opinions](<https://devfeed.tech/tags/opinions.md>), [programming](<https://devfeed.tech/tags/programming.md>), [software](<https://devfeed.tech/tags/software.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [university](<https://devfeed.tech/tags/university.md>)

### AI overview

A software engineer and hiring manager shares an opinion on when university degrees matter in software engineering. Drawing on personal experience, the article argues that practical work experience and getting things done may matter more than academic credentials for some software engineering jobs, while noting that degree requirements vary by profession and context.

### Source excerpt

One of the most discussed topics in the technology field is about having degrees and how important they are. Do you really need one to be a good engineer? When is it really important for you? Writing a post like this is a big responsibility. I'm not here to say if you should attend to ... Continue reading Degree or not degree? When is it really important?

## Easy server provision for PHP environments using ServerPilot

DevFeed: [Easy server provision for PHP environments using ServerPilot](<https://devfeed.tech/articles/easy-server-provision-for-php-environments-using-serverpilot-39015.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/easy-server-provision-for-php-environments-using-serverpilot/>)

Author: Junior Grossi

Published: 2018-03-12T03:00:35Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [PHP](<https://devfeed.tech/topics/php.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [LAMP](<https://devfeed.tech/topics/lamp.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>), [Digital Ocean](<https://devfeed.tech/topics/digital-ocean.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [app](<https://devfeed.tech/tags/app.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [configure](<https://devfeed.tech/tags/configure.md>), [digital-ocean](<https://devfeed.tech/tags/digital-ocean.md>), [easier](<https://devfeed.tech/tags/easier.md>), [environments](<https://devfeed.tech/tags/environments.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [mysql](<https://devfeed.tech/tags/mysql.md>), [php](<https://devfeed.tech/tags/php.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [server](<https://devfeed.tech/tags/server.md>), [using](<https://devfeed.tech/tags/using.md>), [web](<https://devfeed.tech/tags/web.md>), [web-server](<https://devfeed.tech/tags/web-server.md>)

### AI overview

This tutorial explains how to use ServerPilot to provision a VPS for PHP and WordPress applications. It describes using NGINX as a reverse proxy, Apache as the PHP web server, and MySQL, with multiple PHP versions and plan options. The author discusses moving a blog to a DigitalOcean VPS and configuring SSL certificates.

### Source excerpt

Learn how to use a very simple and efficient service called ServerPilot for provisioning a web server to host your next PHP project or blog. Provisioning a well-configured web server for a PHP application is not an easy task. You can have experience doing that, but this is not my strongest skill, I admit. So ... Continue reading Easy server provision for PHP environments using ServerPilot

## Career advice for developers on building a public professional presence

DevFeed: [Career advice for developers on building a public professional presence](<https://devfeed.tech/articles/invest-in-yourself-be-searchable-39016.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/invest-in-yourself-be-searchable/>)

Author: Junior Grossi

Published: 2018-03-05T03:00:48Z

Content type: opinion

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [GitHub](<https://devfeed.tech/topics/github.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [PHP](<https://devfeed.tech/topics/php.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [careers](<https://devfeed.tech/tags/careers.md>), [github](<https://devfeed.tech/tags/github.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [work](<https://devfeed.tech/tags/work.md>)

### AI overview

This opinion article offers career advice for developers and engineers on building a public professional presence. It recommends making skills and work visible through activities such as maintaining a GitHub account, contributing to open source, blogging, and speaking at conferences.

### Source excerpt

Being really good in your field is important, but more important than that is to seem to be good. Invest in yourself. Be searchable! How many times did you search your name on Google? How many times did you search some keywords related to you? Did you like the results you got? Can them be ... Continue reading Invest in yourself. Be searchable!

## Why you should contribute to open source projects

DevFeed: [Why you should contribute to open source projects](<https://devfeed.tech/articles/why-you-should-contribute-to-open-source-projects-39022.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/why-you-should-contribute-to-open-source-projects/>)

Author: Junior Grossi

Published: 2018-02-26T03:00:16Z

Content type: opinion

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [Open Source](<https://devfeed.tech/topics/open-source.md>), [Development](<https://devfeed.tech/topics/development.md>), [Code](<https://devfeed.tech/topics/code.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [WordPress](<https://devfeed.tech/topics/wordpress.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [contribute](<https://devfeed.tech/tags/contribute.md>), [github](<https://devfeed.tech/tags/github.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [projects](<https://devfeed.tech/tags/projects.md>), [source](<https://devfeed.tech/tags/source.md>), [wordpress](<https://devfeed.tech/tags/wordpress.md>)

### AI overview

This opinion article encourages developers to contribute to open source projects. Using Corcel as an example, it describes how publishing code, learning development tools, and gaining visibility through GitHub led to professional opportunities for the author.

### Source excerpt

Open source can change your life. It has changed mine with Corcel, an open source project I started in 2013 that changed who I am, and how I live. The first title I gave to this post was How open source can change your life for the better. That was a good title too, but I ... Continue reading Why you should contribute to open source projects

## Using XDebug with PHPUnit in PHPStorm

DevFeed: [Using XDebug with PHPUnit in PHPStorm](<https://devfeed.tech/articles/using-xdebug-with-phpunit-in-phpstorm-39021.md>)

Original publisher: [Read original article](<https://blog.jgrossi.com/2018/using-xdebug-with-phpunit-in-phpstorm/>)

Author: Junior Grossi

Published: 2018-02-16T17:00:51Z

Content type: tutorial

Language: en

Sources: [Junior Grossi](<https://devfeed.tech/sources/junior-grossi.md>)

Topics: [phpstorm](<https://devfeed.tech/topics/phpstorm.md>), [PHPUnit](<https://devfeed.tech/topics/phpunit.md>), [debug](<https://devfeed.tech/topics/debug.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [PHP](<https://devfeed.tech/topics/php.md>)

Tags: [command-line](<https://devfeed.tech/tags/command-line.md>), [configure](<https://devfeed.tech/tags/configure.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [php](<https://devfeed.tech/tags/php.md>), [phpstorm](<https://devfeed.tech/tags/phpstorm.md>), [phpunit](<https://devfeed.tech/tags/phpunit.md>), [tdd](<https://devfeed.tech/tags/tdd.md>), [xdebug](<https://devfeed.tech/tags/xdebug.md>)

### AI overview

A tutorial on configuring XDebug and PHPUnit in PHPStorm, including PHP settings, test configurations, running test suites, and debugging individual tests. It uses tests from the open-source Corcel project as an example.

### Source excerpt

Learn how to configure XDebug and PHPUnit in PHPStorm, allowing you to write better tests and fix bugs faster. Test Driven Development (TDD) is an old topic, I know, but it seems many people don't understand how it makes you write better code. The point here is that one of the most important benefits it's ... Continue reading Using XDebug with PHPUnit in PHPStorm