Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

documentation update & Laravel 11 #92

Open
dingman opened this issue Mar 15, 2024 · 7 comments
Open

documentation update & Laravel 11 #92

dingman opened this issue Mar 15, 2024 · 7 comments

Comments

@dingman
Copy link

dingman commented Mar 15, 2024

Hi there Will - thanks again for such an amazing wrapper here.

The documentation seems like it might be a bit outdated for Laravel 11, at least while I'm trying to use it

When I import the package into my files

use willvincent\feeds\Feeds; // Import the feeds library

usage

$feeds = Feeds::make($feedUrl);

my IDE continues to tell me:

Undefined class 'Feeds' 

But when I check config\app.php, I don't see anything for aliases anymore

I'm not really sure what I might be doing wrong here. Any advice?

@dingman
Copy link
Author

dingman commented Mar 15, 2024

@willvincent any thoughts?

@wildgras
Copy link

wildgras commented Apr 3, 2024

Hi @dingman, you need to add the following entry in your return array of bootstrap\providers.php file:

willvincent\Feeds\FeedsServiceProvider::class,

After that you can declare the following use:

use willvincent\Feeds\Facades\FeedsFacade as Feeds;

And it will work

@willvincent
Copy link
Owner

I haven't used Laravel 11 yet, does it no longer auto-discover? That seems like a step in the wrong direction.. 😢

@wildgras
Copy link

wildgras commented Apr 3, 2024

@willvincent I can't point out the direct changes as the upgrade notes don't state anything specific other than that the configuration has been streamlined. The "old" way still works and the following links may help:

I guess we'll hear/read more about it in days to come.

@willvincent
Copy link
Owner

Interesting.. I'll take a closer look soon and see about getting aliases working as before again for laravel 11.

@dingman
Copy link
Author

dingman commented Apr 23, 2024

@willvincent appreciate all your help on this. any further updates?

@willvincent
Copy link
Owner

I apologize, I haven't had a chance to dig in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants