---
title: "Discussion on \"Why and How to Make Traits in Laravel\" | Hashnode"
description: "Discussion on \"Why and How to Make Traits in Laravel\". Using Custom Console Commands"
url: "https://hashnode.com/posts/making-traits-in-laravel-with-custom-console-commands/60811942eb2bd30d2d22e91d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Why and How to Make Traits in Laravel](https://blog.lloydmiller.dev/making-traits-in-laravel-with-custom-console-commands?utm_source=hashnode&utm_medium=feed)

Using Custom Console Commands

Apr 22, 2021 · 3 min read · blog.lloydmiller.dev  
Updated May 25, 2021  
Read the article

-   [#php](https://hashnode.com/tag/php)
-   [#laravel](https://hashnode.com/tag/laravel)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#coding](https://hashnode.com/tag/coding)
-   [#100daysofcode](https://hashnode.com/tag/100daysofcode)

## Written by

[Lloyd Miller](https://hashnode.com/@Lloydinator)

@Lloydinator

  
[View profile](https://hashnode.com/@Lloydinator)

Full-stack Web Developer (Laravel and React)

I am a full-stack web developer that enjoys coding in Laravel and React.

## Responses 4

Markdown supported · ⌘↵ to post

[Priya Raimagiya](https://hashnode.com/@priyaraimagiya123)

[Jun 21, 2024](https://hashnode.com/posts/making-traits-in-laravel-with-custom-console-commands/60811942eb2bd30d2d22e91d/comment/6675a1fe7168caeddbf9938d)

Nice article!

[Marcelo Zárate](https://hashnode.com/@marcelozarate)

[Nov 8, 2021](https://hashnode.com/posts/making-traits-in-laravel-with-custom-console-commands/60811942eb2bd30d2d22e91d/comment/61898d3d710d816e7a9cdda1)

**So cool!** Never thought of using a command to create traits. I'm wondering how would you use `DayTimeTrait`?

[Jose Luis Zelaya](https://hashnode.com/@codewithluis)

[Nov 3, 2021](https://hashnode.com/posts/making-traits-in-laravel-with-custom-console-commands/60811942eb2bd30d2d22e91d/comment/6182b04e2806f44d7bc14029)

That was really helpful. Good article. Thanks.

[Oscar Nevarez](https://hashnode.com/@onevarez)

[Nov 1, 2021](https://hashnode.com/posts/making-traits-in-laravel-with-custom-console-commands/60811942eb2bd30d2d22e91d/comment/6180566cf597ba4a827967cd)

Awesome content. thank you
