Open in app

Sign In

Write

Sign In

Tom Ellis
Tom Ellis

293 Followers

Home

About

Sep 19

Laravel Route Annotations 0.3.1 Released

I’ve been working some recent changes on a package called Laravel Route Annotations, which allows you to define routes directly on your Controller classes using PHP Attributes. My original post about it can be found here. I wrote an update on version 0.2.0 here. Version 0.3.1 has now been released…

PHP

2 min read

Laravel Route Annotations 0.3.1 Released
Laravel Route Annotations 0.3.1 Released
PHP

2 min read


Aug 24

Smashed Egg — Laravel Route Annotations 0.2.0 Released

I’ve been working on a package called Laravel Route Annotations, which allows you to define routes directly on your Controller classes using PHP Attributes. My original post about it can be found here. Version 0.2.0 has now been released. 😃 Whats New? This is quite a significant release as it provides the…

Programming

2 min read

Smashed Egg — Laravel Route Annotations 0.2.0 Released
Smashed Egg — Laravel Route Annotations 0.2.0 Released
Programming

2 min read


Jul 24

Smashed Egg — Laravel Console 1.2.0 Released

I’ve been working on a package called Laravel Console, which provides a bunch of enhancements on top of Laravel Console Commands. Version 1.2.0 has now been released. 😃 Whats New? A new Trait (Concern in Laravel’s terms) has been added called AskAndValidate. When added to your commands provides the ability to ask…

Laravel

2 min read

Laravel

2 min read


Jul 8

Binding route models to an authenticated user in Laravel

For anyone that doesn’t know or doesn’t use it, Laravel supports route model binding. So instead of doing this: Route::get('/posts/{post}', function (int $postId) { $post = Post::findOrFail($postId); return $post; }); You can do this: Route::get('/posts/{post}', function (Post $post) { return $post; }); Making it easier to load models, as well…

PHP

3 min read

Binding route models to an authenticated user in Laravel
Binding route models to an authenticated user in Laravel
PHP

3 min read


Feb 6

Using Route Annotations in Laravel 9

I’ve created a Laravel package that allows you to specify (or annotate) routes against your controller class using PHP 8 Attributes. I was inspired by a feature I saw in the Symfony framework, called Route Annotations, which allows you to configure your routes in the controllers themselves, rather than in…

PHP

3 min read

Using Route Annotations in Laravel 9
Using Route Annotations in Laravel 9
PHP

3 min read


Feb 2

How to make your Laravel Console commands interactive

From working with Symfony Components alot, while tinkering around I found that the Console Component provides functionality for interactive commands, which isn’t immediately obvious for some users of Laravel. An interactive command means you don’t have to specify arguments/options when running a command, and that you can interactively ask for…

PHP

4 min read

How to make your Laravel Console commands interactive
How to make your Laravel Console commands interactive
PHP

4 min read


Feb 1

How to add aliases to your Laravel Console commands

I found that when adding console commands to my Laravel install, I got fed up of typing the same long commands everytime, for tasks we do regularly at work. Now the most common solution to this would be to create bash aliases on my local machine: alias short = 'php…

PHP

3 min read

How to add aliases to your Laravel Console commands
How to add aliases to your Laravel Console commands
PHP

3 min read


Jan 30

Introducing Smashed Egg

Towards the end of 2022, I decided I wanted to start writing more Open Source projects for PHP, specifically for use with the Laravel Framework (although that might change over time to cover other framework). But rather than release under my usual Bithub account tomgrohl I decided to create an…

PHP

2 min read

Introducing Smashed Egg
Introducing Smashed Egg
PHP

2 min read


Dec 22, 2018

2019 — A New Year a Better Me

As we approach the end of the year, I reflect back over what has happened this year and what next near will mean to me in regard to my life and mental health. A Quick Summary of 2018 I’d rather not go in to some of the specifics so I’ll keep this as short as…

Mental Health

3 min read

Mental Health

3 min read


Nov 1, 2018

5 Ways I Improved My Mental Health

Having lived with depression and anxiety; a delightful duo, since I was around 12–13 years old it’s taken me a long time to get it under control. I will go over 5 things I did to help improve my mental health. Bare in mind that everyone is different so somethings…

Depression

3 min read

Depression

3 min read

Tom Ellis

Tom Ellis

293 Followers

PHP and JavaScript hacker. Symfony and Laravel tinkerer. Open source developer.

Following
  • Italo Baeza Cabrera

    Italo Baeza Cabrera

  • Erland Muchasaj

    Erland Muchasaj

  • Jeremy Keith

    Jeremy Keith

  • Wil Wheaton

    Wil Wheaton

  • Joel Butcher

    Joel Butcher

See all (73)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech

Teams