Code Monkey home page Code Monkey logo

Comments (2)

gpressutto5 avatar gpressutto5 commented on August 19, 2024

Hey Martin, sorry for the delay. As the description says, it should be a valid URL. So you could use something like this: (not tested)

'application_image' => asset('images/logos/main-logo.png')

from laravel-slack.

mlanser avatar mlanser commented on August 19, 2024

Sorry, but I still cannot get this to work. I feel I've tried every possible combination including hardcoding the path.

By the way, asset('images/logos/main-logo.png') generates the following error:

Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given

I verified that I have a copy of the image in resources/assets/images/logos/main-logo.png

I think I have tried all helper functions at this point and I have also tried all path combinations using both 'resources' and 'public' sub-folders.

Finally I tried to emulate your test cases testSendMessageWithTheDefaultSlackImage() and testSendMessageWithTheDefaultConfigImage(). But even with the hardcoded paths (which I first checked in a browser), it still doesn't seem to work.

So ... at this point I'm not sure what else to try. I must be missing something very simple, but I cannot figure out what it is.

Any thoughts or suggestions?

TIA,
-martin.

from laravel-slack.

Related Issues (15)

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.