Keep Your Copyright up to date with Laravel-Yearly
Robby Russell has already mentioned it in his blog post here. How many times have you realized that your Copyright date/year on your website/app was no longer current?
How many of you have the same problem year after year?
How many of you constantly find yourself going to change it every year?
How many of you are always been reminded by your Boss or Manager that you need to change one very little stuff on a project you worked on 12 months ago?
Guys, Holup! Holup!. This is a very serious issue!!!
I have discovered that when working on projects, you are so focused on handling the big and difficult tasks that you forget to handle the little tasks.
There are many laravel packages out there that I consider and list in my composer.json file every time I start to build a new app in Laravel. I use these packages so that I can concentrate fully on the business logic of the app.
Introducing Laravel-yearly
laravel-yearly is a little nice package that I built to handle your copyrighting and keep it up to date.
Just add the following to any view from within Laravel
1 |
{{ current_year() }} |
1 |
{{ year_range(2005) }} |
It provides a helper function and also a Facade that renders the current year and a range of years like so:
1 2 3 |
<div id="footer"> © Copyright {{ current_year() }} . All rights Reserved. </div> |
Installation
You can grab it on GitHub here
You can also grab it using Composer like so:
1 |
composer require busayo/laravel-yearly |
Robby would say: Do not forget the small stuff because your visitors will notice!!!
- How to build your own Youtube – Part 10 - August 1, 2016
- How to build your own Youtube – Part 9 - July 25, 2016
- How to build your own Youtube – Part 8 - July 23, 2016
- How to build your own Youtube – Part 6 - July 6, 2016
- Introducing Laravel Password v1.0 - July 3, 2016
- How to build your own Youtube – Part 5 - June 28, 2016
- How to build your own Youtube – Part 4 - June 23, 2016
- How to build your own Youtube – Part 3 - June 15, 2016
- How to build your own Youtube – Part 2 - June 8, 2016
- How to build your own Youtube – Part 1 - June 1, 2016