abada / profile
Installs: 18
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 1
Type:asgard-module
Requires
- php: >=5.4
- asgardcms/core-module: ~1.0
- composer/installers: ~1.0
Requires (Dev)
- orchestra/testbench: ~3.1
- phpunit/phpunit: ~4.0
This package is not auto-updated.
Last update: 2025-04-02 13:29:00 UTC
README
Profile module
This module add User Profile capabilities on your wonderful Asgard CMS!
So you got this functionality:
- User profile
- Add this code at your /Themes/Flatly/views/partials/navigation.blade.php
<ul class="nav navbar-nav navbar-right" > <li class="dropdown {{ on_route('user.account') ? 'active' : '' }}"> <a class="dropdown-toggle" href="#" data-toggle="dropdown" role="button">Account</a> <ul class="dropdown-menu" role="menu"> <?php if ($user): ?> <li class="{{ on_route('user.account') ? 'active' : '' }}"><a href="{{ route('user.account') }}">Account</a></li> <?php if ($user->hasRoleName('Admin')): ?> <li><a href="{{ route('dashboard.index') }}">Admin</a></li> <?php endif; ?> <li><a href="{{ route('logout') }}">Logout</a></li> <?php else: ?> <li class="{{ Request::is('*auth/login') ? 'active' : ''}}"><a href="{{ route('login') }}">Login</a></li> <li class="{{ Request::is('*auth/register') ? 'active' : ''}}"><a href="{{ route('register') }}">Register</a></li> <?php endif; ?> </ul> </li> </ul>
Installation
Follow the installation guide of module, with module name "abada/prfile".
If you want to install it on standalone you can follow the steps.
Composer requirement
composer require abada/profile
Package migrations
Run the migrations:
php artisan module:migrate Profile