Skip to content

Make our PresentableTrait a bit smarter#15

Open
unitedworx wants to merge 1 commit intolaracasts:masterfrom
unitedworx:master
Open

Make our PresentableTrait a bit smarter#15
unitedworx wants to merge 1 commit intolaracasts:masterfrom
unitedworx:master

Conversation

@unitedworx
Copy link
Copy Markdown

Now we can forget to set the Presenter Name. It will add Presenter at the end of the class name to automatically find our Presenter. Of course if you specify the Presenter name as you already do or want to follow a different naming convention it will respect that so this change is backwards compatible. Will simply save me from entering the Presenter name where I include this trait! Hurray 1 less line of code in all my Eloquent models :)

P.S. congrats on your work, it really makes using laravel a lot more fun!

Now we can forget to set the Presenter Name. It will add Presenter at the end of the class name to automatically find our Presenter. Of course if you specify the Presenter name as you already do our want to follow a different naming convention it will respect that so this change is backwards compatible. Will simply save me from entering the Presenter name where I include this trait!  Hurray 1 less line of code in all my Eloquent models :)

P.S. congrats on your work, it really makes using laravel a lot more fun!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant