This is a template application for UIS ITS applications built using laravel framework.
- User Authentication using UIS ITS Laravel oidc package.
- Migrations
- Databases: MySQL, Oracle
- AD-LDAP
- User Management
- User Role Management using Spatie Permissions
- User Feedbacks
- Laravel Telescope for development
-
To use this package as a starter template simply run the command
composer create-project uisits/starter project_name
OR
composer create-project uisits/starter:^0.0.1 project_name
-
To create a database during project scaffolding you can add your database connection details in the
.env
file. Then you can simply run:php artisan migrate
This will ask you if you want to create a database and you can pass
y
flag.Note:
In case you want to create the database as a part of shell script you want to pass the
--force
flag to the above command.php artisan migrate --force
Ldap connections now use TLS and have their own User Model in app\Ldap\User
.
In order to search for a user in ldap you can use:
use App\Ldap\User;
$user = User::findByOrFail('extensionattribute1', '123456789');
or
$user = User::findByOrFail('cn', 'xyxxx3');
$user->email;
$user->netid;
$user->uin;
$user->full_name;
$user->first_name;
$user->last_name;
$user->department;
For more querying options review the documentation at https://ldaprecord.com/docs/core/v3/searching#introduction.
- Connect to only necessary services via .env