kavenegar / kavenegar-laravel

MIT License
82 stars 28 forks source link

Problem with publishing the config file #6

Closed sajaddp closed 6 years ago

sajaddp commented 6 years ago

Hi, This command php artisan vendor:publish --provider="Kavenegar\Laravel\ServiceProviderLaravel5" in L56 returns Publishing complete. But does not create the kavenegar.php at config directory.

What should I do now?

bgsrb commented 6 years ago

We tested it on this version and there was no problem. Please try again under the following link https://github.com/KaveNegar/kavenegar-laravel#laravel-5

Add the Kavenegar\Laravel\ServiceProvider provider to the providers array in config/app.php :

'providers' => [
  ...
  Kavenegar\Laravel\ServiceProvider::class,
],

Then add the facade to your aliases array :

'aliases' => [
  ...
  'Kavenegar' => Kavenegar\Laravel\Facade::class,
],

Finally, publish the config file with php artisan vendor:publish --provider="Kavenegar\Laravel\ServiceProviderLaravel5". You'll find it at config/kavenegar.php.

also kavenegar-examples-laravel repo upgraged to laravel v5.6 https://github.com/KaveNegar/kavenegar-examples-laravel

sajaddp commented 6 years ago
عزیز با نسخه 5.6 سازگاری درستی نداره و vendor کار نمی کنه. با https://github.com/KaveNegar/kavenegar-php کارم رو راه انداختم.
ضمنا در نسخه 5.6 به خاطر قابلیت شناسایی خودکار پکیج ها نباید الزامی باشه که کاربر در providers چیزی رو تنظیم کنه کنه.