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

Error Too few arguments to function Illuminate\Cache\CacheManager::repository() #849

Closed
metasanjaya opened this issue Mar 13, 2024 · 2 comments
Assignees

Comments

@metasanjaya
Copy link

Octane Version

2.3.5

Laravel Version

11.0

PHP Version

8.2.14

What server type are you using?

Swoole

Server Version

5.1.1

Database Driver & Version

No response

Description

Error when using Octane Cache

Too few arguments to function Illuminate\Cache\CacheManager::repository(), 1 passed in /app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php on line 357 and exactly 2 expected

Steps To Reproduce

  1. Install laravel with laravel new app
  2. Add laravel octane using composer require laravel/octane
  3. Install octane using php artisan octane:install --server=swoole
  4. Add this script to web.php before view
    cache()->store('octane')->put('time', now()->format('U'));
  5. Run octane using php artisan octane:start
  6. open http://127.0.0.1:8000
@nunomaduro
Copy link
Member

This is fixed: laravel/framework#50510. Can you test again?

@metasanjaya
Copy link
Author

It works now. Thank you very much !

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

No branches or pull requests

3 participants