An overview of how I set up Kubernetes, and my projects to deploy to it.
I really enjoy building scripts for my own workflow. I wish I had the skills to build things in the real world, but until then I’ll keep building stuff in the digital space only. Although I love working with PHP and Laravel, it is Bash that has re-ignited a passion in me to just build…
This is the absolute bare bones minimum implementation for my inventory keeping: saving items to my inventory list. Super simple, but meant only as an example of how I’d work when working on an API. Here are the changes made to my Inventory Manager. Those changes include the test and logic for the initial index…
I only have this post here as there was a couple of extra steps I made after regular installation, which I wanted to keep a note of. Here are the changes made to my Inventory Manager. Follow the Jetstream Installation guide Firstly I just follow the official installation guide. When it came to running the…
Whenever I start a new Laravel project, whether that’s a little side-project idea or just having a play, I try to follow the same process. I recently read Steve’s post here on starting your first Laravel 9 Application, so thought I would write down my own setup. Whereas Steve’s guide walks you through the beginnings…
Laravel is an incredible PHP framework and the best starting point for pretty much any web-based application (if writing it in PHP, that is). Along with it’s many amazing features, comes a beautiful framework from which to test what you are building. For the longest time I cowered at the idea of writing automated tests…
When running psalm in a Laravel project, I get the following error by default: This is the default implementation for configureRateLimiting in the RouteServiceProvider class in Laravel: I change it to the following to get psalm to pass (I’ve added named parameters and the static keyword before the callback function):
When I search for docker-related topics online, it almost seems to me that there are two trains of thought for the most part: I believe either of these is a valid approach — whatever feels right to you. Of course it does also depend on how your company / team works. But I’d like to…
Here is the command to preview your Laravel migrations without running them: Laravel’s migrations give us the power to easily version control our database schema creations and updates. In a recent task at work, I needed to find out why a particular migration was failing. This is when I discovered the simple but super-useful flag…
I just successfully submitted my first test-driven package to the PHP packagist repository. It’s just a little Laravel validation rule object for validating a hmac hash against a configurable group of key / value pairs. Am aiming to do a proper write up and possibly even a little video explaining it.
I love Laravel. I also really like WordPress, for what it is. So when it came to originally putting my personal site together I just wanted to get a simple WordPress site together. I have attempted to build my own website and blog in Laravel from scratch multiple times over the years. I even stuck…
If I start rebuilding my website in Laravel yet again, I really need to see it through and commit to it. If the last couple of weeks have taught me anything it’s that I love working with Laravel. Let’s see how this goes.
This is a quick brain dump for myself to remember how I set up Laravel with Docker. Hopefully it can help others out also.
In Laravel you can create custom request classes where you can house the validation for any given route. If that validation then fails, Laravel’s default action is to redirect the visitor back to the previous page. This is commonly used for when a form is submitted incorrectly – The visitor will be redirected back to…
Digging into laravel is fun. Just made my first little generator tool. Laravel makes everything so bloody easy!
Laravel’s blade view compiler is second to none. I’ve used a couple of different templating engines and blade is by far my favourite. Including Partials The way in which we include partials of views within our main views is as follows:@include(‘partials.my-first-partial’)It will inject that partial’s content in the specified place. Defining Sections Within our views,…
Laravel global query scopes were the answer I needed when working out how to deal with post types in a clean way.
Great to see @laravelphp has reinstated auth/register functionality as an artisan command in 5.2
Updated to PHP7 and got white screen where was fine before. It was @laravelphp blade comment block causing. Deleting comment block fixed it. Just mentioned in case anybody else had a similar issue.
Starting a new personal project tonight. Finally a medium-sized project idea that I want to build. And one to really dig into Laravel.
Normally, with Laravel (@laravelphp on Twitter), if you create a model and use the “-m” or “–migration” flag to create the accompanying migration, it will pluralize the table. So for example “User” model will use a “users” table; “Vehicle” model will use a “vehicles” table. I just discovered however, that if you create a “Data”…
I’ve been using Laravel for my personal website for about eight months now and haven’t looked back since. This huge advantage to my rebuilding it in that way — from its original WordPress foundations — was that I had a crash course in using Laravel as well as learning some best practices as well. Now…
Rewriting my database structure is proving more work than first thought. Still – I’ve learnt some new Laravel stuff which is always good. So even if it never ends up being used, it’s not been a wasted exercise.
A handy way to have some of your routes skip the middleware for CSRF protection. Handy in some situations.
With each extra Laravel component I pull in to use, I increasing think – why not just use Laravel? I then have to remind myself that this whole thing I’m building is an experiment and a learning exercise, so it’s okay.
Successfully pulled in Laravel’s Ioc Container package for use with my project. I love it when things just work. BooYa!
Update: I’m now using WordPress again. Ever since I can remember having my own website, for the most part, I have used WordPress. I’ve loved using it and will always recommend it to clients as being the best way for them to publish online. Of course, with me being a web developer I’m always wanting to tinker.…