我试图将我的laravel4应用程序移植到laravel 5.在以前的版本中,我可以使用以下方法生成分页URL.
在控制器中:
$this->data['pages']= Page::whereIn('area_id', $suburbs)->where('score','>','0')->orderBy('score','desc')->paginate(12);
Run Code Online (Sandbox Code Playgroud)
在与视图共享数据数组后,我可以用户
在视图中:
{{$pages->links()}}
Run Code Online (Sandbox Code Playgroud)
在laravel 5中,这样做会导致跟随错误
ErrorException in AbstractPaginator.php line 445:
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Support\Collection' does not have a method 'links'
Run Code Online (Sandbox Code Playgroud)
不知道我在这里缺少什么,有人可以帮忙吗?
php curl下载是否有最大大小限制.即当转移达到某个文件限制时会卷曲退出吗?
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$data = curl_exec($ch);
Run Code Online (Sandbox Code Playgroud)
它用于下载远程图像的站点.想要确保卷曲在达到一定限度时停止.我的研究也显示getimagesize()下载图像,以返回其大小.所以它不是一个选择.
我正试图在我的Windows 7机器上设置laravel宅基地.我安装了vagrant和virtualbox.还有git bash shell.
没有
vagrant box add laravel/homestead
composer global require "laravel/homestead=~2.0"
Run Code Online (Sandbox Code Playgroud)
将composer vendor bin添加到环境变量中.因此,现在可以从shell访问homestead命令
homestead init   
Run Code Online (Sandbox Code Playgroud)
我编辑了我的Homestead.yaml文件,这是配置.
我的laravel项目目前在配置中提到的目录中.即(E://)目录
folders:
    - map: /e/Projects/Code/apache/laravel
      to: /home/vagrant/Projects
sites:
    - map: foober.dev
      to: /home/vagrant/Projects/foober/public
Run Code Online (Sandbox Code Playgroud)
现在每当我这样做homestead up,我都会收到错误 
Bringing machine 'default' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* The host path of the shared folder is missing: /e/Projects/Code/apache/laravel
Run Code Online (Sandbox Code Playgroud)
我已经确定这cd /e/Projects/Code/apache/laravel是有效的.我不确定我在这里缺少什么.必须是愚蠢的,但任何帮助都会受到赞赏.
我正在尝试将我的laravel 4应用程序移植到laravel 5.我已经添加"illuminate/html": "5.*"到作曲家以及外观和服务提供商进行配置.我使用以下语法链接到我的CSS文件
{{ HTML::style('css/bootstrap.min.css') }}
{{ HTML::style('css/style.css') }}
Run Code Online (Sandbox Code Playgroud)
但在laravel 5中,我的视图输出全部被破坏,页面显示如下截图.

我能在这里失踪什么?laravel 5中的刀片语法是否有任何变化?
我在localhost中尝试这个.这是我如何声明og标签.我正在使用sharethis.js
<meta property="fb:app_id" content="139430409442545"/>
    <meta property="og:site_name" content="ThinkVidya.com">
    <meta property="og:type" content="profile">
    <meta property="profile:first_name" content="kira woka">
    <meta property="profile:last_name" content="K">
    <meta property="og:url" content="http://localhost:8080/bangalore/kira-wok-k/735725 ">
    <meta property="og:title" content="kira woka K - Home Tutor in Bangalore for MBBS &    Medical Tuition">
    <meta property="og:description" content="kira woka K provides Home Tuitions in Bangalore for  and MBBS & Medical Tuition. kira woka K profile - My Teaching Philosophy:    
     My approach to teaching reflects the way I was taught by my own professors. The teachers...">
    <meta property="og:image" content="http://localhost:8080/images/photo-placeholder-190x190-Orange-M.jpg">
Run Code Online (Sandbox Code Playgroud)
当我分享使用fb时显示以下弹出窗口 …
我试图找到评级的数量和Facebook页面的平均值.
我通过oauth获得了一个长期页面令牌,除了这些字段外,还可以访问所有内容.我错过了什么,或者他们不回复这些谷歌地方或foursquare API吗?
我可以通过/ {page-id} /评分来收集个人评分,但是,如果我有一个包含1,000条评论的页面,是否会返回所有这些评分?它是计算我自己的平均值/数量的可靠替代方案吗?
Google地方评分计数是隐藏字段(未在API文档中显示).希望Facebook上可能有其中一个...?