Author Archives: root

How To Force Log Out all Logged In User in Laravel

In some case there is situation where you have to change the main business process in your application. To ensure all user must follow new rule, you have to force logout all logged in user.

In Laravel, you can do this with less pain. In Laravel, your environment settings are stored in one file called .env. This file contains APP_KEY that used for session stuff. So all you have to do is generate new key in your .env file.


Laravel Homestead Different PHP Version

If you are a Laravel developer and always follow php development, you must be in situation where you like to try new feature of latest php version but your project has to use older php version.

Don’t worry because since version 6.0 Laravel Homestead has convenient way to handle this.

All you need to do is put a specific php version in your Homestead.yaml file like below:


Than, you need to provision your homestead.

$ vagrant --provision

Hexcolor To UIColor in Swift

Hexcolor is commonly used id web development. This function will convert your Hexcolor to UIColor so you can use it in your app.

Use it like this:

It’s also can converted to CGColor:

Have fun with color 🙂

Swift Hello World

Setelah sebelumnya kita mengenal apa itu bahasa pemrograman Swift, pada tulisan ini kita akan membahas tentang bagaimana menampilkan sebuah output dalam bahasa Swift.

Sebagaimana telah populer di dunia pemrograman bahwa program yang pertama kali dibuat oleh programmer pemula adalah program “Hello World”. Program ini dapat dilakukan di hampir semua bahasa pemrograman. Karena inilah program paling sederhana. Yaitu menampilkan sebuah output string “Hello World!”. Continue reading