Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make our PresentableTrait a bit smarter #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

unitedworx
Copy link

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