Audio Video Backend Issues With Laravel

Created At: 2023-07-15 05:50:21 Updated At: 2023-07-16 23:31:54

Here we will address the issues we are facing and I am listing the problems are solution to them. 

1. Install laravel via composer

If you try to install laravel using composer and if the below error occurs

Here to solve this you might need to reinstall your Composer. To do that you may run below command

composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/

In my case the above url in the command points to the nearest repository for downloading Composer. In your case, you may need to change the url according to your locations nearest url for composer.

You may also run the above command without changing anything. But it's better you find the nearest repository url and run it.

2. LoginController path issue

As we are importing Controller with LoginController we need to import the path of the Controller. Let's see the picture below.

Here we need to import the path correct. To correct it, above the class import a line for the class

use App\Http\Controllers\Controller;

If you import the above line, the error would be gone.

3. Google login issue

As you try to login with Google account, you may encounter issues from Google and Firebase. There are four major reasons for these issues.

In the link I have explained the steps to login, if you can not login. Go to this link for firebase login issue.

4. Login issue

 Unhandled Exception: type 'String' is not a subtype of type 'Map<String, dynamic>'

Here we will take a look at the below error.

Watch the video to solve the error

Comment

Add Reviews