Admin panel
The admin panel is available on this domain: admin.uniadstech.com.
Its source code is hosted on github.
User's guide
Creating an account and setting permissions
To create an account, you will need sudo access to the admin server.
In the admin server, in /opt/cont/admin directory, execute the following:
sudo docker compose exec php php artisan make:filament-user
Then, it will ask for user details in a nice form through which you can create the user.
For the permissions, it is a bit tricky since at the time of writing the person who created the panel didn't have enough time to make it easy for you. So you will have to either edit them in the database manually or use the artisan tinker command to use Laravel's ORM, which will go something like this:
/opt/cont/admin $ sudo docker compose exec php php artisan tinker
[sudo] password for x:
Psy Shell v0.12.8 (PHP 8.4.1 — cli) by Justin Hileman
> use App\Models\User;
> $user = User::where('email', '=', '...')->first();
= App\Models\User {#7204
id: ...,
name: "...",
email: "...",
email_verified_at: null,
#password: "...",
#must_change_password: 0,
admin_access: "[]",
is_readonly: 1,
#remember_token: "...",
created_at: "...",
updated_at: "...",
}
> $user->admin_access = '"*"';
= ""*""
> $user->save();
= true
> ^D
INFO Ctrl+D.
/opt/cont/admin $
If the admin_access is set to "'*'", the user will have access to everything in the panel.
If you want to have a more fine-grained access, set the admin_access like this:
> $user->admin_access = json_encode([ App\Filament\Pages\Mids::class ]);
For the exact list of the pages you can set, view them in the source code.
Logging in
If you have opened the https://admin.uniadstech.com link in your browser, you will see nothing. To get access to the admin panel, you need the https://admin.uniadstech.com/admin. The one ending in /admin.
If you have created a user, but it tells you the credentials are invalid, you have probably skipped the last part where you need to edit the database. Or its possible that you simply got the wrong password.