Trik Laravel 5

1. Untuk menjalankan project laravel tanpa install apache / web server lain:

di terminal, silahkan tuju folder project Anda (cd/) lalu ketik:

php artisan serve

buka browser dan ketikkan:

http://localhost:8000

sumber:
http://seputarpemrograman.com/berbagai-macam-cara-menjalankan-hasil-install-framework-laravel.html

Advertisements

Be Right Back – View Maintenance Mode Laravel

Silahkan dituju dulu folder project laravel, misal:

cd /opt/lampp/htdocs/laravel5/

Ketik di terminal untuk mengaktifkan mode maintenance :

php artisan down

muncul keterangan: “Application is now in maintenance mode.”

silahkan refresh browser Anda:

Selection_001

Ketik di terminal untuk menonaktifkan mode maintenance :

php artisan up

muncul keterangan: “Application is now live.”

Ok, seru kan? alhamdulillah…

sumber:
https://laravel.com/docs/5.2/configuration
http://stackoverflow.com/a/26193652

Instalasi Laravel 5 di Linux Mint

Selection_001

Ketik di terminal:

1. Download composer

curl -sS https://getcomposer.org/installer | php

atau (bisa untuk update laravel juga) :

composer global require “laravel/installer”

2. Jika php5-cli belum terinstal, maka:

sudo apt-get install php5-cli

3. Ketik :

sudo mv composer.phar /usr/local/bin/composer

4. Untuk buat project baru cukup ketik:

composer create-project laravel/laravel sisfo –prefer-dist

atau

export PATH=”~/.composer/vendor/bin:$PATH”

laravel new ‘nama proyek’

5. Lalu open permission-nya:

sudo chmod -R 777 /opt/lampp/htdocs/sisfo

Silahkan cek di browser Anda:

http://localhost/sisfo/public/

source:
https://getcomposer.org/download/
http://id-laravel.com/post/instalasi-laravel-4/
http://id-laravel.com/post/instalasi-laravel-5/
https://laravel.com/docs/5.1/installation
http://stackoverflow.com/questions/28597648/laravel-5-installation-in-ubuntu-laravel-command-not-found