
A Laravel template that includes most of the stuff required to get a Laravel project going at the UB!
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
The UBL Laravel Template repository is developed to include most of the usual requirements to create a new UBL web application. It includes SAML2 scaffolding, custom error pages, the Leiden University color scheme, and more.
- SAML2 integration, optimized for ULCN and for local development
- Custom error pages with the Leiden University logo
- Admin home page
- Log viewer for admins
- Microsoft Teams notifications
- Bootstrap 5
- Leiden University logos and color scheme
- MkDocs material template for technical documentation
- Pre-generated Issues, Feature Requests, TODO, and Pull Requests templates for GitHub
This is an example of how to list things you need to use the software and how to install them.
-
PHP ^8.1 - The version available on the Leiden University Libraries servers
-
MySQL + a database
-
Python 3.* - Required for MkDocs
-
npm - for publishing the css, js, etc. To install on a semi-managed machine:
npm install npm@latest -g
-
Clone the repo
git clone https://github.com/LeidenUniversityLibrary/UBL-repository-template.git
-
Install composer packages. In the cloned repository's folder:
composer install
-
Copy the .env.example file to a .env. In the cloned repository's folder:
cp .env.example .env
-
Generate and application key
php artisan key:generate
-
Modify the
.env
file with your local details. Pay attention to theDB_DATABASE=
field: it must match the one you generated on your machine. Insert your ulcn username inSAML2_ULCN_USERNAME=
field. -
php artisan migrate:fresh --seed
to create tables and create a dummy admin for local environments. The admin name will beSAML2_ULCN_USERNAME=
-
npm install && npm run dev
to generate the required resources (css, js, etc.) -
php artisan serve
to launch your application locally
Leiden University Libraries - Digitale Diensten Project link: https://github.com/LeidenUniversityLibrary/UBL-repository-template
Distributed under the GNU General Public License v3.0 License. See LICENSE
for more information.