Laravel收银员错误 [英] Laravel cashier error
本文介绍了Laravel收银员错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试将laravel收银员用于正在建设的网站,但出现此错误:
I'm trying to use laravel cashier for a website I'm building but I am getting this error:
Laravel\Cashier\BillableTrait::invoices($parameters = Array)
的声明必须与Laravel\Cashier\BillableInterface::invoices()
我已按照laravel网站上的安装说明进行操作.
I've followed the installation instructions that are on the laravel website.
我的用户模型:
<?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');
}
任何帮助将不胜感激.
提前谢谢.
推荐答案
我也遇到了此错误.到目前为止,laravel/cashier版本2.0.4似乎只是一个问题.我恢复到2.0.3版.
I ran into this error too. It seems to only be a problem (so far) with laravel/cashier version 2.0.4. I reverted to version 2.0.3.
这篇关于Laravel收银员错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文