Comments (24)
composer update
seems to have fixed the issue. Thanks so much!
from laravel-caffeine.
@felorodri thanks for jumping in and helping out with the solution. :)
from laravel-caffeine.
@felorodri You are correct in saying that the url('') line is in there which could be problematic. This is the exact code that gets initially published:
300000, 'domain' => url('/'), 'route' => 'genealabs/laravel-caffeine/drip', ]; If I change the `url('/')` code to `'/'`, there are no issues.from laravel-caffeine.
I got it working by replaceing
GeneaLabs\LaravelCaffeine\Providers\LaravelCaffeineService::class,
with
GeneaLabs\LaravelCaffeine\LaravelCaffeineServiceProvider::class
no it also shows the route in the php artisan route:list
from laravel-caffeine.
Ah yes, the new version doesn't support 5.2. I will update the documentation to be more explicit and direct you to the proper documentation for that version. Thanks for reporting this. :)
from laravel-caffeine.
so 5.2.* versions are not supported also not with
genealabs/laravel-caffeine:~0.3.11
?
from laravel-caffeine.
Version 0.3.12 supports Laravel 5.2, while version 0.4.x is for Laravel 5.1 (LTS) and 5.3 (current). The README shows documentation for the latest version, and hence the instructions for adding the provider in config/app.php
weren't the correct ones for your version. :)
from laravel-caffeine.
ah ok so if I made the adjustments in config/app.php
, and I see the genealabs route in my route:list it should work fine.
thanks for the support and the whole project.
from laravel-caffeine.
I think so. Double check back when I have the correct README for version 0.3.x in place, just to make sure. :) Should be within the next few days.
from laravel-caffeine.
ok
from laravel-caffeine.
Looking forward to this. Thanks.
from laravel-caffeine.
This should now be updated on the master README of the repo (added link to 5.2 instructions). Thanks for your patience. :)
from laravel-caffeine.
Hmm, interesting; it still seems to not work for 5.2. I will let you know what I find.
from laravel-caffeine.
@marcelgruber can you provide any error messages, etc? What's not working specifically?
from laravel-caffeine.
@mikebronner I followed the three steps, but the server is throwing a 500. Nothing seems to be added to my routes file after following the steps, though, so that could be the problem. Does there need to be a route added?
Cheers
from laravel-caffeine.
If you're getting a 500 error, try and follow it back to the root cause by checking your laravel log file and debugging. It may be something completely unrelated or a configuration issue.
Double-check the following as well:
1 you have added the following provider entry in /config/app.php
:
GeneaLabs\LaravelCaffeine\LaravelCaffeineServiceProvider::class,
- Check your composer.lock file to make sure the version installed is
0.3.12
. If not, delete the vendor directory, fix the composer.json entry accordingly, and runcomposer update
again. - Leave the middleware out for now.
- Test if you still get the 500 error. If not, go ahead and add the middleware registration:
protected $middleware = [
// other entries above
\GeneaLabs\LaravelCaffeine\Http\Middleware\LaravelCaffeineDripMiddleware::class,
];
from laravel-caffeine.
Will do. I'll be sure to let you know if I find anything that could contribute here.
from laravel-caffeine.
Great news :-)
from laravel-caffeine.
PS, I did manage to find something worth contributing.
If one publishes the config file via the command
php artisan vendor:publish --tag=genealabs-laravel-caffeine
And then attempts to do any composer commands
php artisan clear-compiled
PHP Catchable fatal error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /var/www/html/project/bootstrap/cache/compiled.php on line 5238 and defined in /var/www/html/project/bootstrap/cache/compiled.php on line 9411
Script php artisan clear-compiled handling the post-install-cmd event returned with an error
[RuntimeException]
Error Output: PHP Catchable fatal error: Argument 2 passed to Illuminate\Rou
ting\UrlGenerator::__construct() must be an instance of Illuminate\Http\Reque
st, null given, called in /var/www/html/project/bootstrap/cache/compiled
.php on line 5238 and defined in /var/www/html/project/bootstrap/cache/c
ompiled.php on line 9411
It works fine though as long as the config file does not get published
from laravel-caffeine.
@marcelgruber Reading your last error after you publish your config file... seems like you kept the url() helper in the domain key of the config array. Can you confirm this?
Edit: I have tested it a couple of minutes ago in one of my L5.2 projects using a published config files and I can confirm that it works as expected.
from laravel-caffeine.
Hi everyone thanks for this package but I need to remove it but this what happens
I'm using laravel 5.4
from laravel-caffeine.
@fredabel please open a new issue for this so we can track this. thanks :)
from laravel-caffeine.
Generating optimized autoload files
Illuminate\Foundation\ComposerScripts::postAutoloadDump
@php artisan package:discover
In ResourceRegistrar.php line 360:
Object of class Closure could not be converted to string
Script @php artisan package:discover handling the post-autoload-dump event returned with error code 1
I'm using laravel 5.6
from laravel-caffeine.
@mohannad1995 Thanks for reporting, would you mind opening a new issue for this?
from laravel-caffeine.
Related Issues (20)
- Issue in production when changing the drip endpoint url default HOT 5
- Can't install in Laravel 7.0.1 HOT 1
- Vue.js @click events not working after installing 7.0 HOT 8
- Issue parsing inline javascript HOT 9
- What's wrong with exposing the CSRF token? HOT 1
- Caffeine javascript is behind closing body-tag HOT 4
- Dependency incompatibility issues for laravel 5 (and suspected 6) HOT 1
- Add Laravel 8.x support
- Move to GitHub Actions for CI. HOT 1
- Failed Installation HOT 3
- Ath_j22 HOT 1
- Composer require error HOT 2
- Issue with caffeine not loading other packages correctly when it refreshes. HOT 1
- Should fix when the device is in sleep mode HOT 1
- The included script is added in a place where it affects my site layout HOT 2
- Laravel 9 support HOT 7
- Deprecation warning using with PHP 8.1 HOT 3
- Laravel 10 support HOT 5
- Not Working in Production environment HOT 4
- XSRF Header Support HOT 1
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-caffeine.