Dharmendra Kumar, Senior Software Engineer & Co founder at MyhospitalNow

  • 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…

  • No Application Encryption Key Has Been Specified.

    No Application Encryption Key Has Been Specified.

    , ,

    Error Solution: In my case, I also needed to reset the cached config files: And Problem has been resolved

  • 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…

  • xampplib: line 22: netstat: command not found

    xampplib: line 22: netstat: command not found

    When I try to start my xampp in the server I found these errors: Error: How can I solve this problem with xampplib and how can I get the xampp to work? Solution It seems that your xampp instance is complaining about a lack of netstat command. netstat is a part of the net-tools package, so run…

  • How to change php7.4 to 8.2 version in linux

    How to change php7.4 to 8.2 version in linux

    You must follow certain steps, depending on your Linux distribution, to upgrade PHP from version 7.4.3 to 8.2 on a Linux machine. The instructions for CentOS/Red Hat and Ubuntu/Debian are listed below: For Ubuntu Step 1: Add the PHP repository for PHP 8.2 Step 2: Install PHP 8.2: Step 3: Disable the current PHP version…

  • How to change username(root) the phpmyadmin in ubuntu server

    How to change username(root) the phpmyadmin in ubuntu server

    , ,

    On an Ubuntu server, you must adjust both the phpMyAdmin configuration and the MySQL user’s settings in order to alter the root user’s username. The steps to do that are as follows 3. In MySQL, change the root user’s username to the new desired username. Replace new_username with your preferred username: 4. After renaming the…

  • How to set password for access the phpmyadmin in ubuntuĀ 

    How to set password for access the phpmyadmin in ubuntuĀ 

    , ,

    You can use these instructions to create a password in Ubuntu to access phpMyAdmin. phpMyAdmin is installed by default; if not, you may install it with the following command: Now, let’s set a password for phpMyAdmin: Open a terminal on your Ubuntu server. Step 1: And run this command Step 2: Restart XAMPP:Ā  Step 3:…

  • List of My Blogs Written in October 2023

    List of My Blogs Written in October 2023

    1. C:\xampp\htdocs\example app10\config\cache.php:92 2. Envoy raise Class ā€˜Barryvdh\Debugbar\ServiceProvider’ not found? 3. What is Container class in Flutter 4. To enable extensions, verify that they are enabled in your .ini files:- C:\xampp\php\php.ini 5. MySQL Basic Database Administration Commands 6. Laravel-PHP Fatal error: During inheritance of ArrayAccess: Uncaught ErrorException: Return type of Illuminate\Support\Collection::offsetExists($key) 7. 11 best github…

  • How to Install COMPOSER on your Ubuntu and run phpmyadmin

    How to Install COMPOSER on your Ubuntu and run phpmyadmin

    ,

    Composer is a well-liked PHP dependency management solution designed primarily to make project dependency installation and upgrades easier. It will determine whether additional packages are needed for a given project and install them for you using the relevant versions based on the project specifications. Additionally, Composer is frequently used to bootstrap new applications built on…

  • How to Install XAMPP on your Ubuntu

    How to Install XAMPP on your Ubuntu

    What is XAMPP Cross-platform (X), Apache (A) server, MariaDB (M), PHP (P), and Perl (P) are the acronyms for XAMPP. It functions essentially as a local host or local server and was created by Apache Friends. Before uploading it to the remote web server or computer, you can install this software on your PC and…

  • XAMPP: Starting Apache…fail.XAMPP: Another web server is already running.

    XAMPP: Starting Apache…fail.XAMPP: Another web server is already running.

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

  • Target class [Fideloper\Proxy\TrustProxies] does not exist.

    Target class [Fideloper\Proxy\TrustProxies] does not exist.

    I upgraded Laravel 5.5 to Laravel version 10. I am getting below error on my page Class “Fideloper\Proxy\TrustProxies” not found Error: Solution: Our local artificial intelligence developed this response on its own. Consider it an attempt to find a one-time solution to your issue. It won’t reply to any further messages. Because Laravel 10 no…