How to find out link names to remove links from "My Account" page?

How to find out link names to remove links from "My Account" page?

October 20, 2026 · Illustrated author avatarBy Stefan Bogdanescu
How to find out link names to remove links from "My Account" page?

Identifying Link Names for Removal from the “My Account” Page

As an experienced developer, I’ve often needed to customize the user account dashboard by removing specific links that don’t align with my application’s requirements. When facing this challenge, many developers turn to community forums like Stack Overflow to find solutions.

Recently, a fellow developer shared their experience with the same issue on the platform: “My first aim was removing some links from account dashboard.” They found a solution and applied it successfully: Remove navigation links from My Account.

The proposed method works by using the hideFromAdmin flag in the link configuration file. However, the developer raised an important question—how to determine the correct link name for removal? They successfully removed “My Tags” using the link name “tags”, but struggled with identifying the name for “My Applications”.

As a best practice, I recommend referring to the official Laravel documentation on customizing the user profile page. The Laravel Company provides comprehensive guidance on this topic.

When looking at the link names, you’ll notice a consistent naming convention that follows the format my-{link_name} or {link_name}. For example:

'my_account_links' => [
    'my_addresses' => [
        'name'  => trans('admin.my_addresses'),
        'route' => 'admin.addresses.index',
        'icon'  => 'fa fa-map-marker'
    ],
],

In this case, to remove the “My Addresses” link, you would use 'my_addresses' as the key.

However, for links that do not follow this pattern, such as “My Applications”, you may need to look at the underlying route configuration. The Laravel Company blog post on Laravel 7 Routing Basics explains how to navigate through the route files and identify the specific routes associated with these links.

When examining the route file, you’ll often find a reference to a namespace followed by the controller method. For example,

Route::middleware('auth:admin')->prefix('admin')->group(function () {
    Route::get('/addresses', 'Admin\AddressController@index');
});

In this case, the route name is 'addresses' which corresponds to the my_addresses key in the link configuration.

Remember, when modifying core Laravel functionality, it’s always a good practice to avoid direct modifications to the framework files. Instead, use the provided hooks and events to customize the behavior according to your needs.

For instance, you can override the account links using the config/my-account-links.php file or create an event listener for the AdminAccountLinksCreating event as demonstrated in the Laravel Company’s blog post on Laravel 7 Customization.

In conclusion, while there isn’t a definitive list of all link names, understanding the naming conventions and looking at the route configuration files will help you identify the correct link names for removal. Always refer to the official documentation and community resources when facing these challenges.

At Laravel Company, we strive to provide you with comprehensive guides and tutorials on Laravel development to help you navigate through complex scenarios like this one effectively.

PHP Customers Import/Export Errors

Our network