danielpetrica

Andrei Daniel Petrica

@danielpetrica

I’m driven by curiosity, and the need to continuously learn new things. Some techs I liked working with the most are Typescript (with Vue.js and Nuxt.js); PHP: Laravel and Docker

182 Posts 392 Views

0 / 255

Pinned

Hi pinkary friends.
I'm building a new small project and I would be interested to get the opinion of people out of my bubble. Would anyone be interested in trying it?
As a reward I can offer a pro plan on it for one year once is published next month.
The tool is a new little link shortener service hosted in Europe, built with laravel and focused on privacy and multi language support.

If anyone is interested I'll send the link in a comment here.
Thank you and sorry for the self promotion

76

It may sound a bit silly but as I'm trying to write fully typed code I found out that managing TTLs values in an enum makes things more intuitive and organized. Here's an example from my app
image

1

110

When encountering it in the code we can easily read tenMinutes or oneDay to undersrand how long this TTL is.

104

If you need to use the session in a web middleware make sure it's executed after the start session middleware. otherwise you won't understand why your site is not working,

153

So easy to handle currency display in Laravel ❤️
image

(the ?? $price is just a personal preference instead of the default false return)

123

Found the linear app very useful. I'm organizing my side projects, my consultancy job, and other personal tasks.
On the personal side, I even use the project update feature like a little journal to infrequently log how my life is going.
It's only been a few months; I will check back in the future with an update on how it's been going

121

Anyone know how to translate the spark feature for the plan?
So far the only way I found is to save the translation strings index in the config and then override it in the service provider but it doesn't look elegant to me

148