Laravel accessors and mutators are custom, user defined methods that allow you to format Eloquent attributes. Accessors are used to format attributes when you retrieve them from the database, while mutators format the attributes before saving them to the database.
Month: December 2015
How to allow remote connections to PostgreSQL database server
After installing PostgreSQL database server, remote access mode is disabled by default for security reasons. However, sometimes you may want to allow remote connections to PostgreSQL database server from other locations, your home or office for example. In the next few lines I’ll guide you to do just that.
Connect to the remote server
First things first, you need to login to the remote server:
1 |
mirzap@bosnadev:~$ ssh root@remote-host |
Continue reading How to allow remote connections to PostgreSQL database server