toplan / laravel-sms

:iphone::heavy_check_mark:A phone number validation solution based on laravel
MIT License
838 stars 174 forks source link

Class 'Toplan\PhpSms\Facades\Sms' not found #60

Closed xzpeng closed 8 years ago

xzpeng commented 8 years ago

Laravel5.2 laravel-sms v2.2.6

在本地Mac运行正常,可以发送短信,但是在Ubuntu系统报错:

然后检查了一下:

输出:

代码是完全一样的,有没有人遇到过这问题? 可能是什么原因导致的呢?目录名字大小写?

abcn commented 8 years ago

我这边也遇到了相同的问题

yaoshanliang commented 8 years ago

我也是,好好的就不行了,怎么解决

yaoshanliang commented 8 years ago

我的laravel5.1

xzpeng commented 8 years ago

可能是psr4规范的原因, 在laravem-sms里加了条路由,临时应对一下 -_#

toplan commented 8 years ago

image

toplan commented 8 years ago

image 难道是需要单独写facades的规则?"Toplan\PhpSms\Facades": ["src/phpsms/facades/"]

yaoshanliang commented 8 years ago

怎么解决呀~~

toplan commented 8 years ago

待会儿会更新phpsms v1.2.3以期解决该问题

toplan commented 8 years ago

@yaoshanliang 已更新phpsms v1.2.3解决该问题

toplan commented 8 years ago

@xzpeng @abcn @yaoshanliang 该问题已解决,请使用最新版本v2.3.1