---
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.

### [When to use Laravel global scopes](https://stefrouschop.nl/when-to-use-laravel-global-scopes?utm_source=hashnode&utm_medium=feed)

Laravel global scopes are great, but I don't see them used a lot. Instead, I see a lot of local scopes being used to achieve the same thing. With proper implementation of global scopes, the code and security would be greatly improved. Let me illustra...

4 min read · [stefrouschop.nl](https://stefrouschop.nl/when-to-use-laravel-global-scopes?utm_source=hashnode&utm_medium=feed)

[2](https://hashnode.com/posts/when-to-use-laravel-global-scopes/63f392458af4253f300c4c47) [Feb 20, 2023](https://hashnode.com/posts/when-to-use-laravel-global-scopes/63f392458af4253f300c4c47)

### [How to secure model ID’s in Livewire and why this is important](https://stefrouschop.nl/how-to-secure-model-ids-in-livewire-and-why-this-is-important?utm_source=hashnode&utm_medium=feed)

TL;DR There is a way to protect your public properties in Livewire 2 in the way it will work in the upcoming Livewire 3. There is a Trait at the end of the article you can use for this. Why should you protect model ID's in Livewire Livewire is great!...

5 min read · [stefrouschop.nl](https://stefrouschop.nl/how-to-secure-model-ids-in-livewire-and-why-this-is-important?utm_source=hashnode&utm_medium=feed)

[3](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6) [Feb 5, 2023](https://hashnode.com/posts/how-to-secure-model-ids-in-livewire-and-why-this-is-important/63dfcae0607038ab00b91ba6)

### [Make changes to the database during a Livewire Pest chain](https://stefrouschop.nl/make-changes-to-the-database-during-a-livewire-pest-chain?utm_source=hashnode&utm_medium=feed)

Tests Tests are great! They're probably the reason why you're still able to sleep at night after someone decided you had to make some last minute changes. Also, they really speed up your development. Imagine working on a piece of code that has a lot ...

3 min read · [stefrouschop.nl](https://stefrouschop.nl/make-changes-to-the-database-during-a-livewire-pest-chain?utm_source=hashnode&utm_medium=feed)

[Nov 5, 2022](https://hashnode.com/posts/make-changes-to-the-database-during-a-livewire-pest-chain/63668c4c67ae3f7da96dcc44)

### [How to keep line breaks in user input without unescaping it in Laravel](https://stefrouschop.nl/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel?utm_source=hashnode&utm_medium=feed)

The problem I recently got a question from a client about disappearing line breaks. It was a valid question since the text came from a textarea input that was echoed out on a page. The type of content was really simple and had no need for markup, so ...

3 min read · [stefrouschop.nl](https://stefrouschop.nl/how-to-keep-line-breaks-in-user-input-without-unescaping-it-in-laravel?utm_source=hashnode&utm_medium=feed)

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

### [On-demand Xdebug with PHPUnit and Laravel in PhpStorm](https://stefrouschop.nl/on-demand-xdebug-with-phpunit-and-laravel-in-phpstorm?utm_source=hashnode&utm_medium=feed)

On-demand Xdebug with PHPUnit and Laravel in PhpStorm TLDR; This guide will make you install Xdebug on your Mac without the performance downsides, but still being able to use all the Xdebug goodnesses. Most Xdebug setups only allow you to use it thr...

[stefrouschop.nl](https://stefrouschop.nl/on-demand-xdebug-with-phpunit-and-laravel-in-phpstorm?utm_source=hashnode&utm_medium=feed)

[Nov 21, 2018](https://hashnode.com/posts/on-demand-xdebug-with-phpunit-and-laravel-in-phpstorm/5cf3f30c34c20ed11c8bdfbe)
