---
title: "Discussion on \"Structuring Laravel Model with Custom Accessor & Mutator\" | Hashnode"
description: "Discussion on \"Structuring Laravel Model with Custom Accessor & Mutator\". This is NOT a recommended way to work with Laravel. At the time of writing this, strong typing and static analysis tools were not available – with their wide usage now, there is no need to use hacks like this anymore.\n\n\nIn a few recent projects, we h..."
url: "https://hashnode.com/posts/structuring-laravel-model-with-custom-accessor-and-mutator/6253317992d73e7055c1a244"
---

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

Discussion

# [Structuring Laravel Model with Custom Accessor & Mutator](https://phpfour.hashnode.dev/structuring-laravel-model-with-custom-accessor-and-mutator?utm_source=hashnode&utm_medium=feed)

This is NOT a recommended way to work with Laravel. At the time of writing this, strong typing and static analysis tools were not available – with their wide usage now, there is no need to use hacks like this anymore. In a few recent projects, we h...

May 12, 2020 · 4 min read · phpfour.hashnode.dev  
Updated Oct 5, 2022  
Read the article

-   [#laravel](https://hashnode.com/tag/laravel)

## Written by

[Mohammad Emran Hasan](https://hashnode.com/@phpfour)

@phpfour

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

Serious PHP

## Responses 1

Markdown supported · ⌘↵ to post

[Zakaria Wardak](https://hashnode.com/@ZakariaRahimi)

[Sep 1, 2022](https://hashnode.com/posts/structuring-laravel-model-with-custom-accessor-and-mutator/6253317992d73e7055c1a244/comment/6310281556df9e8e5025ac66)

Hello Mr. Emran I'm trying to learn Core php first then jump to laravel How can you help me I love to be here with Muslim developers Thanks.
