freek
freek

Freek Van der Herten

Verified

@freek

Laravel developer at Spatie

9 Answers 687 views

/ 255

?

Anonymously

Hi, Freek, is freek your real name or you call your self because you are a tech freak

Hahaha, excellent question.

My legal name is Frederik. My nickname is Freek, which is a common name in Belgium and The Netherlands.

I do consider myself a tech freak as well 😄

86 views

?

Anonymously

You mentioned on 1billion.spatie.be that "Laravel-permissions is our most popular package, yet we never use it ourselves." This raises curiosity: How do you manage permissions in the large projects you develop?



Laravel permission is an excellent choice if you need dynamic permissions. As in: an admin should be able to create a type of permission.

For our projects, we don't need that. We know ahead of time which permissions are needed. In that case, using Laravel's standard authorization features is good enough, We mainly do checks using policies.

799 views

?

Anonymously

I was reading your article on 'Refactoring to actions'. Whats your opinion on rules in the form request vs the action?

There's something to be said for both cases.

Validation in form requests is to make sure that user input has a valid structure (for example: an email has the right format). Validation in actions is mostly to check business rules (is this specific email adres valid for this specific actions).

There's indeed a big grey area here.

771 views