【发布时间】:2014-10-26 20:58:47
【问题描述】:
我正在尝试将 laravel 收银员用于我正在构建的网站,但出现此错误:
Laravel\Cashier\BillableTrait::invoices($parameters = Array)的声明必须与Laravel\Cashier\BillableInterface::invoices()兼容
我已按照 laravel 网站上的安装说明进行操作。
我的用户模型:
<?php
use Illuminate\Auth\UserTrait;
use Illuminate\Auth\UserInterface;
use Illuminate\Auth\Reminders\RemindableTrait;
use Illuminate\Auth\Reminders\RemindableInterface;
use Laravel\Cashier\BillableTrait;
use Laravel\Cashier\BillableInterface;
class User extends Eloquent implements UserInterface, RemindableInterface, BillableInterface
{
use UserTrait, RemindableTrait, BillableTrait;
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'users';
/**
* @var array
*/
protected $dates = ['trial_ends_at', 'subscription_ends_at'];
/**
* The attributes excluded from the model's JSON form.
*
* @var array
*/
protected $hidden = array('password', 'remember_token');
}
任何帮助将不胜感激。
提前致谢。
【问题讨论】:
-
你是如何最终解决这个问题的?我也遇到了。