I’m using Microsoft Graph Api (PHP->msGraph SDK) to create online meetings. I’m Facing 403 error can someone help me out. $clientId = “***********************************”; $clientSecret =…
How to get single variables out of 3 dimensional array?
I’ve got something I think it is a 3 dimensional array: So there are 2 arrays packed inside the variable. First is separated by | the second one by , What I need to do is: separate them and then check for an ID located before the name and give me single variables of the rest. I tried it like
LARAVEL – How to change Auth::route() paths to custom address
I am working on laravel7 Project, I want to change default Auth::route() route paths I have login page and I want to change it to something like: /random/random2/random3/login but laravel auth comes with “/login”. how can I edit it? Answer If you just want to prefix them, you can wrap it in a rout…
Can’t access the Auth::user() from a custom route file ? Laravel 7
For a purpose i decided to create a separate routing file for the admin and separating its logic from the web.php but instead i am facing this issue : ps: the admin.php is registered in the RouteServiceProvider Answer Add web middleware
How to Split the nodevalues on php dom element
i scrape the website, i am getting result of below in single element, i want to split the one by one element. code: input:- Current output:- expecting output:- Answer Each of the text parts is a part of the <div> tag, so this code just assumes that you want the text from each direct child not and adds i…
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‘0430142821’ for key ‘users_melli_unique’
I know this question asked before but i want to know how can i stop to showing this error and instead of this i want to show custom error message to user in blade. This is user migration : UPDATE: This is my insert function : This error happens when i have a melli in my database like 1234567890 and
Using the HTML Select tag to switch between languages in a multilingual website
Before I have a website that i built to switch from English to Dutch just by clicking on a hyperlink i.e <a> I had 2 files; de.php and en.php with following structures; de.php en.php To load a specific language. User only has to click on the hyperlink index.php Now, there’s need for me to add othe…
PHP Google insert calendar event API
I am using this package : https://github.com/googleapis/google-api-php-client I used to get $meet_link like this from the API but suddenly it started throwing error Infact calendar event has been inserted perfectly but I am not getting $event->conferenceData->entryPoints[0]->uri in response. Infact I…
Laravel Dusk: FacebookWebDriverExceptionUnknownErrorException: unknown error: net::ERR_CONNECTION_REFUSED
Running php artisan dusk get the error: Versions: OS: Windows 10 v1903 build 18362.1016 Chrome: 85.0.4183.83 Laravel: v6.18.37 Dusk: v5.11.0 Phpunit: v8.5.8 Tried: Disable firewall Set test website to use localhost (was myapp.local) Can access all pages using Chrome browser Check that vendor/laravel/dusk/bin/…
How to autopopulate a drodown based on the selection in another dropdown in php?
I have read a few similar questions but didn’t find the solution. I am trying to fetch a dropdown based on the selection of another dropdown. The first dropdown is school names, which upon selection should fetch the users under that particular school. There are two tables in the database. The first one …