Code Monkey home page Code Monkey logo

Comments (7)

mtolhuys avatar mtolhuys commented on May 18, 2024 1

Hi @saimyosett ,

This is due to Laravel being unable to cache routes that contains closures. Duplicate of #11

@brocorp-dev I've just tested out in a fresh 7.0.8 myself. Didn't got any issues. By the looks of the Exception message you are getting it seems to be related to your facade\ignition setup though.

from laravel-schematics.

ejntaylor avatar ejntaylor commented on May 18, 2024 1

Hi @mtolhuys I have this issue too, left a comment over here as marked as duplicate:

#11 (comment)

Not sure if that is best practice as it's a closed ticket, so leaving a note here if thats ok. Looking forward to trying Schematics out. Thanks

from laravel-schematics.

Chouchen avatar Chouchen commented on May 18, 2024 1

I had the same bug, commented Artisan::call('route:cache'); in Install.php, relaunched php artisan schematics:install and it worked well.

I suggest something like this :

try {
    Artisan::call('route:cache');
} catch (\LogicException $e) {
     $this->warn('Routes couldn\'t be cached because of Closure.');
}

from laravel-schematics.

mtolhuys avatar mtolhuys commented on May 18, 2024 1

Done! 0.9.11 contains this.

from laravel-schematics.

ejntaylor avatar ejntaylor commented on May 18, 2024 1

Fab - so on a new install just head to web.php and api.php and remove the routes auto included (that use closures). Thanks!

from laravel-schematics.

brocorp-dev avatar brocorp-dev commented on May 18, 2024

Hi guys,

Same behavior on a fresh Laravel 7.0.8 install.

If you remove all your route content (in api.php and web.php), install can run but you got this error when you visit {your-app}/schematics:

InvalidArgumentException HTTP 500 Internal Server Error Action Facade\Ignition\Http\Controllers\ExecuteSolutionController not defined.

from laravel-schematics.

mtolhuys avatar mtolhuys commented on May 18, 2024

Hi @raisonon & @Chouchen, I like the try / catch approach, including it now since this issue is coming up too much.

Like this:

Screenshot from 2020-03-09 18-28-51

from laravel-schematics.

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.