---
title: "Stef Rouschop (@stefrouschop) | Hashnode"
description: "Laravel Developer at Code Runway B.V. Read the latest articles by Stef Rouschop on Hashnode."
url: "https://hashnode.com/@stefrouschop"
---

@stefrouschop

# Stef Rouschop

@stefrouschop · Ulestraten, The Netherlands · Joined June 2019

Laravel Developer at Code Runway B.V.

## Comments

[Thank you for your contribution Maarten Troonbeeckx! I agree that you need to figure out if a global scope is a smart approach in every specific use case. That is what this article is all about, actually. For security, I really understand why global scopes are used. In larger teams, the authentication cannot be overseen in a PR now, so we're secure by default. In a healthy development process (write tests, etc.) the developer sees that he needs to use the "withoutGlobalScopes" during development, so this should not be a problem at all. But this triggers the developer to think about the security, and that is a good thing. In a PR, the reviewer will also be triggered when he sees the "withoutGlobalScopes" and makes this an area of interest to focus on in the review. But of course, every specific use case has different needs and every team has its own preferences.](https://hashnode.com/posts/when-to-use-laravel-global-scopes/63f392458af4253f300c4c47/comment/653f53fc75a4d299aca37153)

Comment · Article · Oct 30, 2023 · [When to use Laravel global scopes](https://hashnode.com/posts/when-to-use-laravel-global-scopes/63f392458af4253f300c4c47)

[Ruben van Erk you’re welcome! Yes, I noticed Caleb was still in doubt how the attribute is going to be. But a find and replace in the code base isn’t that much of a hassle 😉.](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63ffa7da2b647366da4d64fe#reply-63ffaf414afe53670a9e0ee2)

Reply · Article · Mar 1, 2023 · [How to secure model ID’s in Livewire and why this is important](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

[Yes it does. That’s why I included it, it’s more like a double check. Depending on the project, the auth policy can differ. In some weird cases, a user could return true to a policy (is in the same team, etc.) and you still do not want them to tamper with the ID. In that case the lock would be helpful. Also, the ID is just an example. For example, you could also lock a variable that contains an action type like ‘create’ or ‘update’. A public variable can be useful for something like this, and you don’t want users to tamper with that.](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63ffa7da2b647366da4d64fe#reply-63ffaa814afe53670a9e0e5a)

Reply · Article · Mar 1, 2023 · [How to secure model ID’s in Livewire and why this is important](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

[Yes, there is a checksum. But that is the point. If you would change the value through the "wire" by using $0.\_\_livewire.$wire.postId = 5 the checksum will be recalculated because this is a legit action because $postId is a public property. Only if you would do something like $0.\_\_livewire.data.postId = 5 the checksum would fail as soon as you click save.](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6/comment/63e421b4c12298e89c7150b4#reply-63e499c09870a6e797804d3c)

Reply · Article · Feb 9, 2023 · [How to secure model ID’s in Livewire and why this is important](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

[I’m not sure, but I think they were introduced in Laravel 7.](https://hashnode.com/posts/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel/6291f5b70989e6b52feaf0f1/comment/62925672d97f80b5091d9b35#reply-6292597b0989e6b52feafdbd)

Reply · Article · May 28, 2022 · [How to keep line breaks in user input without unescaping it in Laravel](https://hashnode.com/posts/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel/6291f5b70989e6b52feaf0f1)
