Photo by Campaign Creators on Unsplash

Laravel testing is great! Most of the time, we do testing with PHPUnit, right? Writing Unit/Feature tests is a great way to ensure that our codes work as intended so that we can deploy them with confidence. Most of the time, we do tests from the developer’s perspective. And sometimes, we’re mocking the behavior of external resources (i.e. External APIs) so that our tests become independent of the external things. We don’t want our test to depend on external systems, which makes the tests becomes unclear.

The question that might appear is, can we do the test from the user’s…


Photo by Domenico Loia on Unsplash

Laravel is a great framework! We all know it. It offers a full stack development that enables us to build a frontend and backend website in one place. So we can deliver/build web projects in no time with quality and security inside. But that’s not it. There are so many things we can explore and leverage more power in Laravel. For example, I’ve written a lot of Vue JS component that we can embed it into our Laravel pages so that we can have a dynamic UI for our users. Interesting right? But the next thing we need to explore…


Photo by Chepe Nicoli on Unsplash

For web developers, it’s important for us to authenticates our users via API Request. In Laravel itself, besides its full-stack development, we have many options on how to authenticate the requests. For example, we have the Laravel Passport package to do the authentication and OAuth processes. But, if you don’t want to use the OAuth feature that Passport offers, then the Laravel Sanctum may be a choice for you.

What is Laravel Sanctum?

Laravel Sanctum provides a featherweight authentication system for SPAs (single page applications), mobile applications, and simple, token based APIs (https://laravel.com/docs/8.x/sanctum)

Yes, in Sanctum, we have two options…


Photo by Giftpundits.com from Pexels

Are you a developer? If yes, I’m sure that you must always add some packages/libraries to your project. I’m a Laravel developer, maybe you too. And inside Laravel, we have so many useful packages that ready to use, make life easier for us. What do you need? Do you want an API Authentication? You have Laravel Passport/Sanctum. Need a monitoring queue job? You have Horizon. Or maybe other packages from other developers/companies like Spatie Laravel Permission for managing roles and permissions. And trust me, there are so many more packages that useful for our projects. Just a little tip from…


Image from https://laravel-livewire.com

Are you’re a Laravel developer? If so, what comes in your mind if I said about the “Laravel Front-end”? The blade files? Static interfaces? or something else? Yeah, Laravel is an excellent tool for building full-stack development, but the front-end itself is a static one. As you might know, the Laravel front-end is being rendered by the server and cannot be changed on the client-side, so that the pages/interfaces are static if we are using the pure Laravel front-end/blade files.

Here it comes! The good news is, we can use various JS frameworks/libraries inside the blade files. So, as a…


Photo by Balázs Kétyi on Unsplash

In real life mobile application projects, we usually need to implement some authentications inside our app. To achieve this, we need some approaches so that the app can have the ability to not only asking about the email and password from the users but also need to store the necessary information that we may use it inside our app later. For example, when the app sends a request to the server to authenticate the users, the server may send back the necessary information of the users, such as the first name, last name, gender, etc. …


Photo by Remi Moebs on Unsplash

What will you do first when you’re installing a bare new React Native project? I guess it’s all about the boilerplate codes, right? At least, you’re preparing the navigation because, as we all know, navigation is the thing that must be there. So, you’ll search the React Navigation docs, do some installations, and make some changes in your app. Yeah, there are so many navigation libraries that need to be installed so that we cannot memorize all of them, at least me.

In this post, I’ll make some boilerplates for implementing React Navigation 5 in a new React Native project…


Photo by Pixabay from Pexels

Building such a complicated form on your website requires an understanding of how to implement various elements in a form. The fundamental elements that can be found in almost every form are the input, checkbox, and radio button elements. But let’s say you have a Blog app and need to build a form where you can create a post there. Also, you need a file uploader element to upload an image to become the featured image of the post. Or, you need to create a file uploader for your users so that they able to upload some files to your…


Photo by Christopher Gower on Unsplash

Building a large-scale web application is very complicated. You and your teammates must pay attention to either big or little details so that your app works well. Plus, it would be best if you considered several things when typing some codes there. For example, is your code reusable? So that your teammates can use your code/functions you typed. Or is your code is scalable enough? So it would be much easier to maintain and make an improvement later. Yes, you know what I mean, we must think ahead. But remember, as a general rule of thumb from Jeffrey Way in…


Photo by מתן שגב from Pexels

What do you know about reCaptcha? I mean, every developer would understand why we use reCaptcha on our websites. It protects our sites from the bot and ensures that only humans can be in our sites. From Google’s documentation, it has a very explicit explanation:

reCAPTCHA protects you against spam and other types of automated abuse. -developers.google.com

Usually, we use this reCaptcha on our login/register page or a form that we want to protect. But actually, we can extend this usability in every button/action we want to protect. In reCaptcha version 3, we can get a score and can determine…

Cerwyn Cahyono

PHP/Backend Engineer at Undercurrent Capital Pte Ltd — Data Science Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store