Coder Social home page Coder Social logo

Comments (7)

Bogardo avatar Bogardo commented on July 29, 2024

On what event are you receiving this error? This exception is thrown in the mailgun-php package.

from mailgun.

jeffersonsetiawan avatar jeffersonsetiawan commented on July 29, 2024

I think it's because of how to get config variable in mailgun.

here is the snippet:
$this->from = Config::get('mailgun::from'); (Line 66)

I can solve it by changing Config::get('mailgun::from') to Config::get('mailgun.from')
(Laravel 4 use . instead of ::) @nu1ww.

Notes: change all :: to . in vendor/bogardo/mailgun/src/Bogardo/Mailgun/Mailgun.php

I know it is bad practice to changing file in vendor, but It works.

from mailgun.

danbovey avatar danbovey commented on July 29, 2024

As far as I can tell, support for Laravel 4.2 is broken in this package because of this issue.

So I've forked this repo and reset it back to the last commit where the package supported Laravel 4.x and changed all of the config keys to use . as a separator.

If @Bogardo can accept the pull request my fork into the develop branch (if I'm right in thinking that's the branch for legacy Laravel stuff). Or potentially if :: is used on a Laravel version I don't know about, merge it into a new branch called 4.2.

Thanks!

from mailgun.

Bogardo avatar Bogardo commented on July 29, 2024

I'm pretty sure Laravel 4.2 uses a :: for accessing a package configuration file.
See https://laravel.com/docs/4.2/packages#package-configuration

Or am I missing something?

from mailgun.

danbovey avatar danbovey commented on July 29, 2024

Ahhhh OK forgive me not understanding package config completely. As the artisan command is broken in older versions of this because it's not tagged properly (I think this is fixed in latest), I didn't know where to put it. I was getting the same thing as #53, and didn't think to check the README history.

I've fixed it for myself now by moving the config to app/config/packages/bogardo/mailgun/config.php instead of app/config/mailgun.php as the README states.

from mailgun.

Bogardo avatar Bogardo commented on July 29, 2024

Please make sure you are using the correct version of this package for your version of Laravel.
If you are on Laravel 4.2, use version 3.1.* of this package.

from mailgun.

danbovey avatar danbovey commented on July 29, 2024

Yep using 3.1.7. It's just me and everybody else in this issue misinterpreting the new README file. So you can probably close this.

from mailgun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.