Comments (2)
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.
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)
- oAuth Bot Token
- Broken on Laravel 5.7? HOT 2
- Queue slack notification HOT 1
- As of L5.7 class SlackMessage is no longer available HOT 3
- Laravel 5.8 support HOT 2
- Ability to configure multiple webhook URLs HOT 2
- Laravel 6.x - Support HOT 7
- Send message from commands laravel HOT 1
- Test on more PHP versions
- Laravel 10 Support HOT 2
- Sending multiple messages to the same recipient when sending to multiple recipients
- Lumen? HOT 1
- Sending to multiple channels from one webhook URL HOT 7
- Sending to multiple Slack instances HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-slack.