uisits / starter
Laravel Template for UIS ITS projects
Installs: 13
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
Requires
- php: ^8.0.2
- adldap2/adldap2-laravel: ^6.1
- arcanedev/log-viewer: ^9.0
- doctrine/dbal: ^2.10
- graylog2/gelf-php: ^1.7
- guzzlehttp/guzzle: ^7.3
- laravel/framework: ^9.19
- laravel/sanctum: ^3.0
- laravel/tinker: ^2.7
- spatie/laravel-permission: ^6.0
- uisits/laravel-oidc: ^9.1
- yajra/laravel-oci8: ^9.0
Requires (Dev)
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.0.1
- laravel/telescope: ^4.17
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.1
- phpunit/phpunit: ^9.5.10
- spatie/laravel-ignition: ^1.0
This package is not auto-updated.
Last update: 2024-04-23 16:56:14 UTC
README
This is a template application for UIS ITS applications built using laravel framework.
Features
- 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
Usage
-
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
How To
Use Ldap
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.
TODO:
- Connect to only necessary services via .env