Uncategorized

  • sudo: /opt/lmapp/lampp: command not found

    sudo: /opt/lmapp/lampp: command not found

    Solution: Step 1 – Configure Apt Repository Step 2- Install mysql Server sudo apt-get update sudo apt-get install mysql-server Step 3- Secure Mysql installation Install apache web server Install PHP DO below Things 1. Add Repostitory command

  • oauth-private.key does not exist or is not readable

    oauth-private.key does not exist or is not readable

    Error: Solution: I think that this is due to Laravel Passport, you should try the following command: I found the solution Solution: In config/app.php I had to comment these lines: Than you need to migrate the whole database again, than uncomment this line: And run php artisan passport:install my application keys weren’t working so I…

  • Call to undefined method Laravel\Lumen\Routing\Router::dispatch()

    Call to undefined method Laravel\Lumen\Routing\Router::dispatch()

    Error: The error traceable logs looked like this. I’m not sure if this is relevant, however even though my credentials were valid, I don’t believe that they were rejected. It worked when I tried it with oauth/token as well. The error persists. I possess. Solution: The request that is dispatched is without the credentials added…

  • How to fix Error: laravel.log could not be opened?

    How to fix Error: laravel.log could not be opened?

    Depending on how your web server is setup, you may be able to be more specific with your permissions, and only grant them to your web server user. Google WEB SERVER NAME Laravel file permissions for more information. You need to adjust the permissions of storage and bootstrap/cache. Step 1: Step 2: Step 3: You…

  • Illuminate \ Contracts \ Container \ BindingResolutionException

    Illuminate \ Contracts \ Container \ BindingResolutionException

    Error : Solution: Step 1: First remove nwidart/laravel-modules by running: composer remove nwidart/laravel-modules Step 2: Then remove config/modules.php by deleting it. Step 3: Reinstall nwidart/laravel-modules by running: composer require nwidart/laravel-modules Hope this helps (backup your project first):

  • production.ERROR: Illegal offset type {“exception”:”[object] (TypeError(code: 0): Illegal offset type

    production.ERROR: Illegal offset type {“exception”:”[object] (TypeError(code: 0): Illegal offset type

    Error: Solution: Instead of giving your checkFile method a string or integer index, you are feeding it an array. Make one of the following adjustments to address this: Modify the checkfile such that it performs the checking using the array that was handed in. Alter the code that calls this function to pass the file…

  • GuzzleHttp\Exception\ClientException: Client error:

    GuzzleHttp\Exception\ClientException: Client error:

    Error: Solution: Got to .env and removed / After that run this command

  • ERROR: Class “Illuminate\Http\Resources\Json\Resource” not found

    ERROR: Class “Illuminate\Http\Resources\Json\Resource” not found

    Error: Solution: Go to App\Http\Resources and change Replace thin code Afte that error is solved.

  • Unable to read key from file file:///opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/storage/oauth-private.key

    Unable to read key from file file:///opt/lampp/htdocs/myhospitalnow/mhn-hospital-ms/storage/oauth-private.key

    Error: Solution: Step 1: run this command Step 2: run this command Step 3: run this command

  • Missing required parameters for Route (Laravel 10)

    Missing required parameters for Route (Laravel 10)

    Error: Solution: Go to hospital-profile.blade.php and change the route to the URL

  • The GET method is not supported for route /. Supported methods: HEAD.

    The GET method is not supported for route /. Supported methods: HEAD.

    Error: Solution: Solved my same problem just with the command: You can use the following commands- or

  • Trait “Laravel\Passport\HasApiTokens” not found

    Trait “Laravel\Passport\HasApiTokens” not found

    Error: Solution: I have faced the same issue and it was resolved by doing the following: Do you have a composer? Install that first. Then you need Laravel Passport. Step 1: Step 2: Step 3: Step 4: Add add theĀ Laravel\Passport\HasApiTokensĀ trait to yourĀ App\UserĀ model.

  • Stuck in a git rebase … how to reset

    Stuck in a git rebase … how to reset

    Error: rebase in progress; onto f39d81c0 You are currently rebasing branch ‘master’ on ‘f39d81c0’. (all conflicts fixed: run “git rebase –continue” ) nothing to commit, working tree clean Solution: Step 1: Step 2: Step 3:

  • SQLSTATE[42S22]: Column not found: 1054 Unknown column – Laravel

    SQLSTATE[42S22]: Column not found: 1054 Unknown column – Laravel

    Error: Solution: Go to phpMyadmin and insert the column “provider” oauth_clients table the purpose of theĀ providerĀ column inĀ oauth_clientsĀ table Problem is solved

  • laravel – The stream or file “/storage/logs/laravel.log” could not be opened in append mode: failed to open stream: Permission denied

    laravel – The stream or file “/storage/logs/laravel.log” could not be opened in append mode: failed to open stream: Permission denied

    Error: Solution: What I have tried so far is to allow access to storage via: Step 1: Step 2: Go to your project and this command After that problem solved

  • composer unable to install laravel/passport

    composer unable to install laravel/passport

    Error: Solution: I am using PHP8.1 and face the same issue running the command and it’s worked for me. And then runĀ composer updateĀ command. Problem has been resolved

  • ERROR: Target class [PassportAPI\ContactManagementController] does not exist. {“exception”:”[object]

    ERROR: Target class [PassportAPI\ContactManagementController] does not exist. {“exception”:”[object]

    Error: Solution: Step 1: Namespace in Controller File: Make sure the directory structure in your ContactManagementController.php file corresponds to the namespace declaration at the beginning of the code. The appropriate namespace ought to be: Step 2: Composer Dump-Autoload: Run the following command again to make sure Composer’s autoloader is up to date: Step 3: Check…

  • How To Install and Use Composer on Ubuntu

    How To Install and Use Composer on Ubuntu

    Introduction Composer is a widely used PHP dependency management solution designed primarily to make project dependency installation and updates easier. It will determine which additional packages are required for a given project and install them for you using the relevant versions based on the project specifications. Composer is also frequently used for bootstrapping new projects…

  • Updating Laravel TrustProxies Middleware after Framework Version Upgrade

    Updating Laravel TrustProxies Middleware after Framework Version Upgrade

    It’s crucial to take care of modifications in middleware configurations when updating Laravel from version 5.7 to version 10 in order to guarantee your application runs well. the problem with the TrustProxies middleware and offer a fix to update the code so that it is compatible with Laravel 10. Changes in the framework may make…

  • ProFTPD fail : UserPassword Missing argument

    ProFTPD fail : UserPassword Missing argument

    Error: Solution: There appears to be an unknown configuration directive ‘function’ on line 44 of the ProFTPD configuration file (/opt/lampp/etc/proftpd.conf), according to the error message. To remedy this, take these actions: Step 1: Open the ProFTPD configuration file in a text editor. For example, you can use nano: Step 2: Navigate to line 44 and…