GithubHelp home page GithubHelp logo

Comments (24)

marcelgruber avatar marcelgruber commented on May 18, 2024 2

composer update seems to have fixed the issue. Thanks so much!

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024 1

@felorodri thanks for jumping in and helping out with the solution. :)

from laravel-caffeine.

marcelgruber avatar marcelgruber commented on May 18, 2024 1

@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.

patpaskoch avatar patpaskoch commented on May 18, 2024

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.

mikebronner avatar mikebronner commented on May 18, 2024

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.

patpaskoch avatar patpaskoch commented on May 18, 2024

so 5.2.* versions are not supported also not with

genealabs/laravel-caffeine:~0.3.11 ?

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024

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.

patpaskoch avatar patpaskoch commented on May 18, 2024

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.

mikebronner avatar mikebronner commented on May 18, 2024

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.

patpaskoch avatar patpaskoch commented on May 18, 2024

ok

from laravel-caffeine.

marcelgruber avatar marcelgruber commented on May 18, 2024

Looking forward to this. Thanks.

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024

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.

marcelgruber avatar marcelgruber commented on May 18, 2024

Hmm, interesting; it still seems to not work for 5.2. I will let you know what I find.

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024

@marcelgruber can you provide any error messages, etc? What's not working specifically?

from laravel-caffeine.

marcelgruber avatar marcelgruber commented on May 18, 2024

@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.

mikebronner avatar mikebronner commented on May 18, 2024

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,
  1. 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 run composer update again.
  2. Leave the middleware out for now.
  3. 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.

marcelgruber avatar marcelgruber commented on May 18, 2024

Will do. I'll be sure to let you know if I find anything that could contribute here.

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024

Great news :-)

from laravel-caffeine.

marcelgruber avatar marcelgruber commented on May 18, 2024

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.

felorodri avatar felorodri commented on May 18, 2024

@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.

fredabel avatar fredabel commented on May 18, 2024

Hi everyone thanks for this package but I need to remove it but this what happens
screen shot 2017-10-28 at 10 51 20 am
I'm using laravel 5.4

from laravel-caffeine.

mikebronner avatar mikebronner commented on May 18, 2024

@fredabel please open a new issue for this so we can track this. thanks :)

from laravel-caffeine.

mohannad1995 avatar mohannad1995 commented on May 18, 2024

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.

mikebronner avatar mikebronner commented on May 18, 2024

@mohannad1995 Thanks for reporting, would you mind opening a new issue for this?

from laravel-caffeine.

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.