Valet | Valet lets you securely store data | iOS library
kandi X-RAY | Valet Summary
kandi X-RAY | Valet Summary
Valet lets you securely store data in the iOS, tvOS, watchOS, or macOS Keychain without knowing a thing about how the Keychain works. It’s easy. We promise.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Valet
Valet Key Features
Valet Examples and Code Snippets
Community Discussions
Trending Discussions on Valet
QUESTION
I recently performed a rather large update to this web app, and for the most part it went off without a hitch... Until the app tries to send an SMS notification from staging/production.
The upgrade from laravel 7.x to 8.x was quite simple and straightforward. At the same time we also installed Laravel Horizon. Everything went according to plan, and all works fine locally.
When we deploy to staging/production however, queued SMS notifications fail with the following exception:
ReflectionException: Class Http\Adapter\Guzzle6\Client does not exist in /home/forge/dev.example.com/releases/20210609194554/vendor/laravel/framework/src/Illuminate/Container/Container.php:836
Looking in the stack trace we can see that Nexmo is the culprit:
#5 /home/forge/dev.example.com/releases/20210609194554/vendor/nexmo/laravel/src/NexmoServiceProvider.php(150): Illuminate\Foundation\Application->make()
However in our composer.json file we are requiring Guzzle 7 with the following:
"guzzlehttp/guzzle": "^7.3",
It is worth mentioning again at this point, I have no issues sending SMS locally, the main difference between local and staging environments is that locally I use Laravel Valet and Staging uses Laravel Envoyer.
What I've tried so far:
- Changing
"guzzlehttp/guzzle": "^7.3"
to"guzzlehttp/guzzle": "^6.5|^7.3"
- Running
php artisan horizon:purge
andphp artisan horizon:terminate
both manually and in a deployment hook. - Restarting the laravel horizon daemon on forge.
- trying
php artisan queue:restart
- running
composer dump-autoload
andcomposer dump-autoload -o
- deleting composer.lock and the vendor/ directory from current/ then running
composer install
- Restarting PHP, Nginx, and eventually the entire server :(
and more...
Any help is greatly appreciated
UPDATE Below:
Complete composer.json:
...ANSWER
Answered 2021-Jun-09 at 23:40I see that the NexmoServiceProvider
is trying to use the defined http_client
in the config, so can you share what the .env
has for NEXMO_HTTP_CLIENT
? I am pretty sure you have something wrong there or even not defined.
And this is what it is defined in the config/nexmo.php
related to that config:
QUESTION
I'm trying to install Laravel Valet on my system using Homebrew. I'm on the step where I'm installing Composer. I'm trying to install it globally.
After installing it says:
Composer (version 2.0.12) successfully installed to: /Users/ryan/composer.phar
But when I try to check the version using composer -v
, it says:
Could not open input file: /usr/local/bin/composer.phar
.
Why is it looking there? Also, this is what I have in my PATH's file:
ANSWER
Answered 2021-Apr-01 at 19:37I just moved the composer.phar and composer.json files to this location:
/usr/local/bin/
. That solved this issue for me.
QUESTION
ANSWER
Answered 2021-Apr-28 at 18:43Trying to parse the JSON in online tool I got:
QUESTION
When processing a job batch, when it goes to the next job and finishes it is throwing a reflection exception. You can find my exception details on Flare.
I've seen other posts about Reflection exceptions, so I've tried
- Restarting valet
composer update
composer dump-autoload
My job is dispatched using the following code:
...ANSWER
Answered 2021-Apr-26 at 02:51The problem was how the batch was built. Calling SyncSchool::dispatch($school)
dispatches that job independently and returns a PendingDispatch
. So a PendingDispatch
was put in the batch, not my desired SyncSchool
job.
Changing SyncSchool::dispatch($school)
in my map to new SyncSchool($school)
correctly puts the SyncSchool
job in the batch.
Lesson: read the docs closely.
QUESTION
Do you know of any way to run Valet on a port other than 80? I need it because it's going to conflict with MAMP (and don't want to change MAMP ports).
...ANSWER
Answered 2021-Feb-24 at 12:48No answer here... Anyway I'm answering by myself... One way is just proxying:
QUESTION
test.py
...ANSWER
Answered 2021-Jan-04 at 10:33You need to add sample data in setUp
method and use them in test methods. Add the sample data like following.
QUESTION
I'm developing site with subdomain. I am using laravel valet as well So, It's currently look like https://app.portal.test/
in my local environment. I want to share this site using laravel valet sharing site option sharing-sites-via-ngrok. But it's not working. So I guess I want to do something different for sharing with subdomain. Anyone have any idea how to do for valet share
for subdomain?
ANSWER
Answered 2020-Dec-22 at 01:35You cant share https://app.portal.test (.test), thats for local only, it doesn't resolve on internet.
If you have public ip (whatsmyip.com) and that ip opens your localhost, then you can create a virtual host that point to that IP but you still need a real domain not test.
Using ngork is best option you have, You can also get a cheap $3 vps and point your domain to it.
QUESTION
Using php 7.2
...ANSWER
Answered 2020-Dec-17 at 14:30This seems to be a problem with the virtual box filesystem. I created an issue to composer and hopefully more insight will be gained.
https://github.com/composer/package-versions-deprecated/issues/21
QUESTION
I am trying to automatically add a header to any response for files being fetched stored within the /storage/
folder.
Whenever I use this location-block:
...ANSWER
Answered 2020-Nov-19 at 13:35Your root directory for the server is set to /
.
Therefore, when you specify /storage/ location it looks for a file in /storage/media/1/1/turtle.jpg
- which is printed in your logs and which fails because the file is not where.
When you remove this location block, it uses location /
which has rewrite command.
Therefore, if you modify your storage location and include proper rewrite instruction into it, this should work. Note, this will require a bit of tweaking to get this right - see documentation here: https://nginx.org/en/docs/http/ngx_http_rewrite_module.html#rewrite
Finally, best practice for static content is to not use rewrite at all, but rather to identify proper location on disk for it and modify root
instruction to match that location and get rid of rewrites. This should improve both performance and readability.
QUESTION
This feels like it's all way harder than it should be. I am working on an application for a client and am at the end of my rope trying to get this thing running locally. So, I am using Laravel(served through Valet on my mac) and am writing a Socket.io server for handling different dashboard events. Socket.io runs in an https configuration as it will in production and I've got it running on port 3001. I've got both serving content over https, resolved all configuration issues there. However, now I can not stop getting CORS errors whenever I try to connect.
Here is the error I am getting:
Access to XMLHttpRequest at 'https://ags.test:3001/socket.io/?EIO=3&transport=polling&t=1605106550351-47' from origin 'https://ags.test' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
I've done a fair bit of testing on this and found that if I do a GET request to the root (/) of the express server, it works fine and without CORS errors. However, the polling at the url posted in the error above is still providing the same CORS error.
If it isn't abundantly obvious by now, I'm fairly new to the node ecosystem. So what I'm caught up on is what's happening with CORS when it goes from calling 'https://ags.test:3001' to 'https://ags.test:3001/socket.io/*'. Or is it possible that express isn't handling the CORS for socket.io at all?
Something I've seen multiple times in other stackoverflow answers is something along the lines of (from the server) io.origins('*:*')
to set the origin policy. However, I can't seem to find documentation on this and calling it (or any of the variations I've seen of it)
So you know what I've already tried, here the server configuration for my Socket.io express server:
...ANSWER
Answered 2020-Nov-12 at 00:40Okay, took me way too long to figure out what I was missing. Old stackoverflow answers show configuration methods that are no longer supported in Socket.io v3.
Here's what I was missing to configure this for the most recent version of Socket.io as of the date of posting.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Valet
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page