GithubHelp home page GithubHelp logo

Comments (8)

amir9480 avatar amir9480 commented on May 25, 2024 2

Hi @ashrafkamarudin

First issue:
It's weird because Arr class is an alias class in laravel.
https://github.com/laravel/laravel/blob/c66546e75fcbf208d2884b5ac7a3a858137753a3/config/app.php#L194

Second issue:
About AuthServiceProvider, it's a commented line by default and should not be filled with non-existing
class.
https://github.com/laravel/laravel/blob/c66546e75fcbf208d2884b5ac7a3a858137753a3/app/Providers/AuthServiceProvider.php#L16

Third issue:
It's weird, I used this method to get middleware names.
You can see it's definition here:

https://github.com/laravel/framework/blob/5b756ae90a16ca224ad5283956eca6d3e15aa278/src/Illuminate/Foundation/Http/Kernel.php#L434

Make sure you are using the latest version of laravel in your project.

from vscode-laravel-extra-intellisense.

ashrafkamarudin avatar ashrafkamarudin commented on May 25, 2024

I see. yes i've check the files it seems that these changes is applied to Laravel's 5.8 and above. So the one who used Laravel 5.7 and below will get these errors in their laravel log.

Do you plan on supporting old laravel ?

also btw, I think you should update your log handler seems to not be working as it logs to laravel's log file on this line

" $this->app['log']->setHandlers([new \\Monolog\\Handler\\NullHandler()]);" +

maybe you can try it with

$this->app['log']->getLogger()->pushHandler(new \\Monolog\\Handler\\NullHandler());

from vscode-laravel-extra-intellisense.

amir9480 avatar amir9480 commented on May 25, 2024

@ashrafkamarudin

No, I do not have any plans to support older versions of laravel.
I highly recommend you to update your laravel application to the latest version.

Also about this handler please make a pull request to fix, So I can check and use your solution, thanks.

from vscode-laravel-extra-intellisense.

ashrafkamarudin avatar ashrafkamarudin commented on May 25, 2024

Alright, I'll do it.

from vscode-laravel-extra-intellisense.

mwkcoding avatar mwkcoding commented on May 25, 2024

@amir9480 You should consider using FQN instead of assuming people have their aliases registerered.
Some people might upgrade their Laravel projects without updating configs cause it's never included in the upgrade guides unless it's a breaking change. Aliases will NEVER be a breaking change in configs. They're made for the convenience of the developer. They're optional, not required.

from vscode-laravel-extra-intellisense.

amir9480 avatar amir9480 commented on May 25, 2024

@mwkcoding
Hi
I don't understand what you mean.

Can you please send me a sample code to disable the Laravel log?
The current code is:
https://github.com/amir9480/vscode-laravel-extra-intellisense/blob/master/src/helpers.ts#L80

from vscode-laravel-extra-intellisense.

mwkcoding avatar mwkcoding commented on May 25, 2024

@amir9480 I mean for example with helper classes like Arr https://github.com/amir9480/vscode-laravel-extra-intellisense/blob/master/src/AuthProvider.ts#L55
Instead of expecting there to be an alias for it in the project, use the FQN Illuminate\Support\Arr. That would solve this error on Laravel ^6.0 which might not have the class registered as an alias in their config from upgrading from Laravel 5.

from vscode-laravel-extra-intellisense.

amir9480 avatar amir9480 commented on May 25, 2024

@mwkcoding
Got it.

Contributions are welcome.
Please fix this and make a pull request.

from vscode-laravel-extra-intellisense.

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.