morilog / jalali

This Package helps developers to easily work with Jalali (Shamsi or Iranian) dates in php appliations, based on Jalali (Shamsi) DateTime class.
MIT License
860 stars 110 forks source link

Class JalaliServiceProvider not found #43

Closed ali-mhz closed 5 years ago

ali-mhz commented 6 years ago

Hi I'm using laravel 5.4 to develop an app, when i run: php artisan optimize i got this error:

In ProviderRepository.php line 208:
  Class 'Morilog\Jalali\JalaliServiceProvider' not found

just to mention that i cloned my project and run this that at the end when it want to optimize i got the above error composer install --no-dev

morilog commented 6 years ago

See your composer.json in require section, and look for morilog/jalali dependency. If does not exists just add "morilog/jalali": "v2.*" and runcomposer update` in your command line

hamid80386 commented 5 years ago

my composer.json has

"morilog/jalali": "3.*",

and get same error

morilog commented 5 years ago

There is not any ServiceProvider from v3. Please read the documentations.

peymanator commented 5 years ago

In the documentation in your website you wrote serviceprovider. سپس فایل config/app.php رو باز کرده و مقادیر زیر رو در آرایه‌های خودشون قرار می‌دیم:

morilog commented 5 years ago

@peymanator اون مال خیلی وقت پیشه و ورژن قبلی. بعد بلاگ من که مرجع داکیومنتیشن نیست خود ریپازیتوری توضیحات در رابطه با نصب و استفاده هر ورژن جداگونه داره

MahdiiHashemii commented 5 years ago

updated from v2 to v3 and get same error Symfony \ Component \ Debug \ Exception \ FatalThrowableError (E_ERROR) Class 'Morilog\Jalali\JalaliServiceProvider' not found vendor\laravel\framework\src\Illuminate\Foundation\ProviderRepository.php

Kamandlou commented 3 years ago

remove Morilog\Jalali\JalaliServiceProvider::class from app.php