Imagine that, you have a invoice number 2017-0001, 2017-0002 so forth. In the beginning of 2018, it would be something like this 2018-0001, 2018-0002 and more… . Meaning, first day of each year, it will be renewed based on year. In laravel, you can do it like this way.tisuchi
Spending time to write simplest PHP Code.
Laravel Generate Invoice number1