Skip to content

Conversation

@browner12
Copy link
Contributor

I find the side scrolling for code snippets to decrease readability. these lengthy method signatures are often the culprit on this page. switching to multiline parameters to help avoid the necessity to side scroll.

followed the PSR-12 recommendation for when dealing with multiline parameters AND a return type.

I know this will be a constant battle in the documentation, and while changes like this won't completely eliminate the problem, I do think they help.

I would also like to see the Laravel documentation site make better use of the space it has available. On larger screens we have the ability to increase the container size. I would also suggest there is a lot of unused space between the columns of our 3 column layout. Changes here would also go a long way to help remove the need for side scrolling. Since the laravel.com repo has been set to private, I don't believe the community has the ability to make these suggestions anymore.

I find the side scrolling for code snippets to decrease readability. these lengthy method signatures are often the culprit on this page. switching to multiline parameters to help avoid the necessity to side scroll. followed the PSR-12 recommendation for when dealing with multiline parameters AND a return type.
@shaedrich
Copy link
Contributor

shaedrich commented Apr 23, 2025

side scrolling

Where do you need side-scrolling? On the phone? It's not like these examples are overly long oO

I would also like to see the Laravel documentation site make better use of the space it has available.

I'd say, that's the actual cause. With your PR you're merely attempting to fix the symptom, which wouldn't be one if the root cause was fixed.

@browner12
Copy link
Contributor Author

On desktop. You can find an example of side-scrolling on basically every page.

@taylorotwell taylorotwell merged commit 67a890f into laravel:12.x Apr 23, 2025
@browner12 browner12 deleted the AB-newline-cast-parameters branch April 23, 2025 21:09
@AhmedAlaa4611
Copy link
Contributor

I would also like to see the Laravel documentation site make better use of the space it has available.

I agree with you, these changes will not solve the problem.

Since the laravel.com repo has been set to private

Why it is set to private? and why also the Bootcamp is not available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

4 participants