@konstruktionsplan running php artisan cache:clear will it fix the problem?
Make sure you have bootstrap/cache directory, if you don't then manually create it and give it a writable permissions.
Hello.
After install livewire and build the searchbar like here: https://medium.com/@branick/search-with-laravel-livewire-cb6dcd4ad541
The /tmp/storage/bootstrap/cache directory must be present and writable.
@konstruktionsplan running php artisan cache:clear will it fix the problem?
Make sure you have bootstrap/cache directory, if you don't then manually create it and give it a writable permissions.
php artisan cache:clear
Not working. :C The "bootstrap/cache" directory exists.
@konstruktionsplan so then there is not enough permissions. For the user that runs your web server. So you should add 755 permissions to that directory.
https://laracasts.com/discuss/channels/general-discussion/laravel-framework-file-permission-security
I gave them the evil 777.
Well not that evil locally, but don't do that on the server :D
And do you still get the same error?
Yes. :(
Hm, are you using windows ? Try to delete the cache folder and create it manually again..
Nope. Its MacOS.
I was also having this problem, and realized that the config for manifest_path was pointing to the wrong directory. As you can see, /tmp/storage/bootstrap/cache doesn't exist for a fresh Laravel install on a local machine so it can't ever find it.
The solution is to publish the config with php artisan vendor:publish --tag=livewire:config and then change manifest_path to the appropriate path, mine being \bootstrap\cache\livewire-components.php.
Hope this helps!
@dgrzyb It was life saving. Many thanks.
@dgrzyb I am sorry to revive this. but I did not wanted to create a duplicate post. I tried all of above solutions but my livewire view is being cached very hardly. I even completely emptied the file but it is sitl showing old code. if I delebrately break code in compoent file, it does show errors, but the view file is not reflecting any changes. tried cache:clear, manually removed cache folder, changed manifest_path ,etc. I am using Laragon in windows.
Please or to participate in this conversation.