16.04 php-cli

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

16.04 php-cli

文章 yehlu »

代碼: 選擇全部

apt-get install php-cli
apt-get install php-mysql
apt-get install php-mbstring
apt-get install php-zip
apt-get install php-xml
apt-get install php-gd
apt-get install php-imagick
apt-get install mariadb-client-core-10.0

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/local/bin/composer

composer global require "laravel/installer"

PATH=$PATH:$HOME/.config/composer/vendor/bin

laravel new blog
chmod 777 bootstrap/cache/ -fR
chmod 777 storage/ -fR
php artisan migrate
composer require encore/laravel-admin
composer require intervention/image
composer require spatie/eloquent-sortable
composer require intervention/imagecache

php artisan vendor:publish --provider="Encore\Admin\AdminServiceProvider"
php artisan admin:install
composer require laravel-admin-ext/helpers
composer require laravel-admin-ext/log-viewer
composer require laravel-admin-ext/backup
composer require laravel-admin-ext/config
composer require laravel-admin-ext/api-tester
composer require laravel-admin-ext/media-manager
composer require laravel-admin-ext/scheduling
composer require laravel-admin-ext/reporter
composer require laravel-admin-ext/translation
composer require laravel-admin-ext/messages @dev
php artisan migrate
php artisan admin:import helpers
php artisan admin:import log-viewer
php artisan admin:import backup
php artisan admin:import config
php artisan admin:import api-tester
php artisan admin:import media-manager
php artisan admin:import scheduling
php artisan admin:import reporter
回覆文章

回到「laravel」