Skip to content

Mohcin Bounouara

Thoughts about software engineering and life

05 Nov 2024
01 Nov 2024

Fixing Object Pagination with Laravel and Inertia.js that gives empty data

Problem When working with Laravel and Inertia.js, pagination returns an object instead of an array. This can make looping over the results a bit tricky, as the expected array structure isn’t accessible. For example, in a typical Laravel controller method like this: You might see the data coming through correctly as a prop in your Continue reading “Fixing Object Pagination with Laravel and Inertia.js that gives empty data”

27 Oct 2024

Knowledge comes on the way.

In life, and especially in software development, you can not always fully understand every step or action right away. I used to struggle with this feeling, like I wasn’t good enough if I didn’t completely understand every detail of what I was doing in programming. However, I was wrong. It’s totally normal to use or Continue reading “Knowledge comes on the way.”

09 Oct 2024

Fixing Laravel Route Conflicts, that led to 404 Errors for Existing Routes

Problem: Recently, while developing a feature to update resources in my Laravel app, I faced an unexpected issue: the create functionality, which had been working previously, suddenly stopped functioning. When I tried accessing the jobs/create route, it led to a 404 page, even though my unit tests confirmed that the route existed and the functionality Continue reading “Fixing Laravel Route Conflicts, that led to 404 Errors for Existing Routes”

02 Oct 2024
02 Sep 2024
18 Aug 2024
02 Aug 2024
29 Jul 2024
12 Jul 2024