Test Public Articles and Drafts with Laravel Feature Tests
Verify that published articles are readable while draft detail URLs remain inaccessible.

A space to connect knowledge, one line of code a day.
Discover tutorials, ideas, and notes from a learning journey.
Verify that published articles are readable while draft detail URLs remain inaccessible.
Verify that published articles are readable while draft detail URLs remain inaccessible.
Separate additional work from HTTP responses with jobs, workers, and dispatch after commit.
Reduce repeated counting with Cache::remember and decide when cached data should refresh.
Use stable item identities and show a clear message when an article list is empty.
Split article and dashboard pages using loadComponent and place fallback routes correctly.
Represent loading, success, empty results, and errors when fetching articles from an API.
Stay curious. There is always something new to learn.
Writer and founder of Diary Coding — sharing notes, tutorials, and experiences about programming for anyone who wants to keep learning.