Issue installing Carbon package in Laravel 5.8

Today, I got this error while I&#8217;m trying to install Laravel Dusk. The error message said that we need to use the new version of Carbon instead of current version 2.18.0. Since Laravel has already used the Carbon as default but it used 2.1*. So I alias the current version as the latest version in &hellip; <p class="link-more"><a href="https://www.duyngha.com/blogs/issue-installing-carbon-package-in-laravel-5-8/" class="more-link">Continue reading<span class="screen-reader-text"> "Issue installing Carbon package in Laravel 5.8"</span></a></p>

Route Order and Overwrite defined in Package in Laravel

I faced a problem that I have a route which does not work in any case. It always show not found. After researching around, I know that because of the ordered of the routes. To demonstrate, imagine I have 2 routes: GET /post/{id} and GET /post/create So in this case, the second route will be &hellip; <p class="link-more"><a href="https://www.duyngha.com/blogs/route-order-and-overwrite-defined-in-package-in-laravel/" class="more-link">Continue reading<span class="screen-reader-text"> "Route Order and Overwrite defined in Package in Laravel"</span></a></p>

Fail to clear the cache in Laravel

Sometimes, you run the artisan command php artisan cache:clear and get this error message in the terminal. It causes you are missing a folder name data in storage\framework\cache. Create it and the error will be go away.

Laravel Testing API Token Unauthenticated

Sometimes, I got this error message when I tested my API routes. It meant we have to authenticate the route. So I used actingAs() function. But I still got this error. After few minutes researching around, I found out that we can add second argument of actingAs() function to determine which guard should be used. &hellip; <p class="link-more"><a href="https://www.duyngha.com/blogs/laravel-testing-api-token-unauthenticated/" class="more-link">Continue reading<span class="screen-reader-text"> "Laravel Testing API Token Unauthenticated"</span></a></p>