Category Archives: Laravel 5

Laravel multiple languages

Laravel multiple languages

This tutorial will show you how to make a website with multiple languages in Laravel.
Firstly, we go routes/web.php and add some code to this file to allow user can change language.

Now user can understand how to change language, further you can write a switcher with the links to allow user click on to change language by yourself.

Next step, we can create some migration about POST to make post table with translation.

Continue reading

Upload Download file php sftp

Upload Download file php sftp

This code will show you how to connect to server via ssh and download, upload file via ssh2_scp like winscp.

To run this code you must install php_ssh2.dll on window for xampp by adding php_ssh2.dll to php.ini and put php_ssh2.dll in ext folder, for Ubuntu you must install php_ssh2 extension and make it available to use.

For window you can download in here for php 7.1, php 7.0 and lower version in here. Continue reading