Coder Social home page Coder Social logo

PHP Fatal error: Uncaught BadMethodCallException: Method Illuminate\Foundation\Application::withSchedule does not exist. in /vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:115 about framework HOT 3 CLOSED

BrenoRibeiro706 avatar BrenoRibeiro706 commented on July 18, 2024
PHP Fatal error: Uncaught BadMethodCallException: Method Illuminate\Foundation\Application::withSchedule does not exist. in /vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:115

from framework.

Comments (3)

rodrigopedra avatar rodrigopedra commented on July 18, 2024

Documentation never stated the Illuminate\Foundation\Application class to have a withSchedule method.

This method is available within the \Illuminate\Foundation\Configuration\ApplicationBuilder class.

Why are you new'ing up a Illuminate\Foundation\Application object, instead of using Application::configure() as it is shown in the docs when on the application skeleton (https://github.com/laravel/laravel)?

https://github.com/laravel/laravel/blob/3b3f9f13faab1753e7b7cad6a0e7098e54c8199f/bootstrap/app.php#L3-L18

from framework.

rodrigopedra avatar rodrigopedra commented on July 18, 2024

Oh, I guess I figured out what is happening... You are following Laravel 11 docs but are using an older Laravel version...

If you can't upgrade your project to Laravel 11, please follow an older version of the docs, such as:

https://laravel.com/docs/10.x

from framework.

driesvints avatar driesvints commented on July 18, 2024

Thanks @rodrigopedra

from framework.

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.