Edit environtment vi /etc/environment
add these lines...
LANG=en_US.utf-8
LC_ALL=en_US.utf-8
| <?php | |
| namespace App\Models\Concerns; | |
| use Illuminate\Database\Eloquent\Casts\Attribute; | |
| use Illuminate\Http\UploadedFile; | |
| use Illuminate\Support\Facades\Storage; | |
| use Illuminate\Support\Uri; | |
| trait HasPhoto |
Copy htaccess code to your laravel/lumen .htaccess file.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*) public/$1 [L]
</IfModule>
| ==== CENTOS 7 LEMP STACK INSTALLATION ==== | |
| 0. Make sure the centos 7 server have internet connection | |
| 1. Install the EPEL Repository | |
| sudo yum -y install epel-release | |
| 2. Install the Remi Repository | |
| sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm | |
| 3. Install Nginx |