Hello 👋

I'm @carlcassar on X , Instagram and Github . I've been making websites and apps for well over ten years . This is my blog, where I write about PHP , Laravel , Javascript , AWS , and other interesting topics .

Tidying Tips

In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.

  1. If it’s hard, don’t do it
  2. Start when you’re fresh and stop when you’re tired
  3. Land each session’s work immediately
  4. Two reds is a revert
  5. Practice
  6. Isolate tidying


What To Tidy is a follow-up post in which Kent goes on to describe specific patterns to look out for.

In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.

  1. If it’s hard, don’t do it
  2. Start when you’re fresh and stop when you’re tired
  3. Land each session’s work immediately
  4. Two reds is a revert
  5. Practice
  6. Isolate tidying


What To Tidy is a follow-up post in which Kent goes on to describe specific patterns to look out for.

In a post called The Life Changing Magic of Tidying Up Code, Kent Beck outlines his philosophy on cleaning up code. The article results in a short list of easy-to-follow rules, which I'm sure he would agree are there to be broken.

  1. If it’s hard, don’t do it
  2. Start when you’re fresh and stop when you’re tired
  3. Land each session’s work immediately
  4. Two reds is a revert
  5. Practice
  6. Isolate tidying


What To Tidy is a follow-up post in which Kent goes on to describe specific patterns to look out for.

Thank you for reading this article.

If you've made it this far, you might like to connect with me on 𝕏 where I post similar content and interact with like-minded people. If this article was helpful to you I'd really appreciate it if you would consider buying me a coffee.
Continue Reading

Reset Your Laravel App In Seconds

In his recent talk about Laravel Nova at Laracon US, Taylor Otwell used a nice little shortcut to reset his demo app during the presentation. To reset an app in our local environment, we need to do three things:

  • Drop the database.
  • Migrate the database.
  • Seed the database.


  • As of Laravel 5.5, we've been able to to use the following command to perform all three actions at once:

    In his recent talk about Laravel Nova at Laracon US, Taylor Otwell used a nice little shortcut to reset his demo app during the presentation. To reset an app in our local environment, we need to do three things:

  • Drop the database.
  • Migrate the database.
  • Seed the database.


  • As of Laravel 5.5, we've been able to to use the following command to perform all three actions at once:

    In his recent talk about Laravel Nova at Laracon US, Taylor Otwell used a nice little shortcut to reset his demo app during the presentation. To reset an app in our local environment, we need to do three things:

  • Drop the database.
  • Migrate the database.
  • Seed the database.


  • As of Laravel 5.5, we've been able to to use the following command to perform all three actions at once:

    Thank you for reading this article.

    If you've made it this far, you might like to connect with me on 𝕏 where I post similar content and interact with like-minded people. If this article was helpful to you I'd really appreciate it if you would consider buying me a coffee.
    Continue Reading