
Laravel
舒浅
这个作者很懒,什么都没留下…
展开
-
Laravel img 目录
URL::to_asset('img').'/error_graph_image.png';原创 2013-05-16 14:40:38 · 1051 阅读 · 0 评论 -
Nginx Laravel alias配置
location /laravel { alias /srv/www/html/laravel/public; index index.php index.html; } location ~ /laravel/.+\.php.*$ { if ($fastcgi_script_name ~原创 2013-05-10 17:19:41 · 3027 阅读 · 0 评论 -
Laravel swiftmailer(messages) 发邮件,基于smtp或linux sendmail
Install using the Artian CLI:php artisan bundle:install messagesLaravel配置bundles.phpapplication/bundles.php return array( 'messages' => array('auto' => true),);配置1,基于smtp发邮件con原创 2013-05-29 11:20:44 · 4302 阅读 · 0 评论 -
windows 本地PHP环境配置Laravel Wamp+ Composer
1.安装Composer2.命令行里面进入你的apache根目录的项目目录下执行composer create-project laravel/laravel --prefer-dist如果出现以下报错: [RuntimeException] You must enable the openssl extension to download files via https请配置原创 2013-08-12 18:05:08 · 3557 阅读 · 0 评论 -
laravel 使用artisan命令新增数据库字段
cmd 命令行 到项目目录,不是public那个目录D:\Program Files\wamp\www\Book>php artisan migrate:make add_machine_type_to_booksCreated Migration: 2013_09_05_104157_add_machine_type_to_booksGenerating optimized class原创 2013-09-05 12:07:53 · 10844 阅读 · 2 评论 -
vagrant php-fpm nginx laravel 目录权限问题
使用vagrant,很多目录所有者和分组会变成vagrant,没法更改,非常麻烦最后找到办法:/etc/php-fpm.d/www.conf修改如下,重启就行:user=vagrantgroup=vagrant原创 2015-09-22 22:17:25 · 2138 阅读 · 0 评论