Toybox for Laravel

A TALL starter kit for Laravel solopreneurs

Visit Website
September 4, 2023 Latest Toybox wins
  • First confirmed user! Confirmed via first Github issue, heh.
  • Laravel Octane support is now in place - given that Octane can be configured to restart every X requests, I decided to be conservative and set it to restart every 250 requests per worker. Octane is still optional, of course.
  • Some more infrastructure tools in the README
  • Fixed said Github issue: In classic Apple fashion their version of a given UNIX tool is always different. In this case, I was able to find a sed command that works the same on both macOS and Ubuntu.

I'm on the hunt for a better free provisioning & deploying tool, but not having much luck. I've seen new tools in the PHP space like Eddy, VitoDeploy, and Deployer, but they all lack in some core functionality. Envoy (the package) is quite meh. Then there's more generalist tools for the job like Ansible, Chef/Salt, Puppet, and so on, but those are slow, have increased learning curves (yet another tool to learn), and feel overcomplicated for just wanting to spin up a "download your repo and go" style Laravel server.

So there's a gap somewhere in the middle here for a fast, simple deployment tool. I'm hopeful for Mohamed Said's Flight tool to be released at some point.

Comment

August 29, 2023 Introducing Toybox for Laravel

Hey peeps! Here's a project I've been working on for the last two months. It initially started as trying to be a simplified boilerplate for Laravel, but I think it's gone a bit beyond that.

With recent tooling releases in the Laravel ecosystem, there's a ton of exciting tools to work with, but it's either annoying to set it all up every time, or it's difficult to try and gather it all up for every piece you'll need for your SaaS.

To that end, Toybox attempts to collate what is in my opinion the best of modern Laravel, and while being simple to start, run and launch with. This is how I also came up with the name - pick and choose all your favourite Laravel toys and see how quickly you can build products with it.

I've never been a fan of Docker and similar tools. While I see their value, I've generally not had a good experience and it always felt like a waste of my time trying to debug infrastructure instead of writing application code. So on that front Toybox goes back to basics - it targets only one stack, and is made to be able to initialise its repository, provision the server it is currently on, and deploy itself from your local machine, all with Bash scripts.

Lastly, I tried to include guidance and support for scaling beyond an MVP and Bash scripts: The README includes tons of recommendations for various services & tools for all manner of things you need for your SaaS.

3 Comments

  1. 2

    Hey fellow Laravel developer ! No plan for a VILT starter kit for Laravel solopreneurs I suppose?

    1. 2

      Hey hey!

      To be honest I haven't worked with VILT as much as I'd like in the last few years. In terms of frontends it does also seem to be a bit more work to get something up quickly IMO. The benefit of VILT is that it aligns well with the majority of existing Laravel jobs, as Vue has always been a great frontend tie-in with Laravel. But it does mean having to have two skillsets (Laravel and Vue) to run it all - naturally not impossible, but personally I feel TALL is more productive in this sense by still being majority Laravel/PHP work.

      With Livewire (plus Folio and Volt now) and Filament, I believe this will change in time and we'll be seeing more jobs using TALL. A lot of apps just don't need JS frameworks to accomplish a great experience.

      All that being said, a VILT version of Toybox would look largely the same because Filament requires Livewire. So a VILT Toybox would be more of a "best of both worlds" than one or the other - the biggest difference being where UI logic lies and using the Inertia version of Jetstream.

      I'd be glad to see a VILT fork though 😉

      1. 2

        Let's fork it then ! Just kidding. Not today though.

About

Modern Laravel moves at a blazing speed. There's so many good tools to use to work on your SaaS and scale with, but it's also difficult to dedicate time to stay on top of these things and manage dependencies.