diff --git a/Documentation/ER Diagram.png b/Documentation/ER Diagram.png new file mode 100644 index 0000000..572ab55 Binary files /dev/null and b/Documentation/ER Diagram.png differ diff --git a/Documentation/Udlån V3.mwb b/Documentation/Udlån V3.mwb new file mode 100644 index 0000000..65b55a1 Binary files /dev/null and b/Documentation/Udlån V3.mwb differ diff --git a/README.md b/README.md index bf0ddd9..c6121d2 100644 --- a/README.md +++ b/README.md @@ -1,66 +1,54 @@ -

Laravel Logo

+**Original Author / Coder** : Danny Johansson (dann4624) -

-Build Status -Total Downloads -Latest Stable Version -License -

+**Contact by Discord** : Semeicardia#5561 -## About Laravel +**Contact by Email** : semeicardia@gmail.com (Primary), dann4624@edu.sde.dk (secondary) -Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: +## Special Laravel Modules +### Packages +**MailJet** : https://github.com/mailjet/laravel-mailjet -- [Simple, fast routing engine](https://laravel.com/docs/routing). -- [Powerful dependency injection container](https://laravel.com/docs/container). -- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. -- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). -- Database agnostic [schema migrations](https://laravel.com/docs/migrations). -- [Robust background job processing](https://laravel.com/docs/queues). -- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). +**DomPDF** : https://github.com/barryvdh/laravel-dompdf -Laravel is accessible, powerful, and provides tools required for large, robust applications. +## Påkrævet Software +**SigPlus** : https://www.topazsystems.com/software/sigplus.exe -## Learning Laravel +**Topaz SigPlusExtLite** : www.topazsystems.com/software/SigPlusExtLite.exe -Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. +## Påkrævet Hardware +### Signature Pad +**Brand** : Topaz Systems -You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. +**Model** : T-L462-HSB-R Signature Pad -If you don't feel like reading, [Laracasts](https://laracasts.com) can help. Laracasts contains over 2000 video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. +**Website**: https://www.topazsystems.com/index.html -## Laravel Sponsors -We would like to extend our thanks to the following sponsors for funding Laravel development. If you are interested in becoming a sponsor, please visit the Laravel [Patreon page](https://patreon.com/taylorotwell). +## Påkrævet Browser Extensions +**Til Google Chrome / Microsoft Edge**: https://chrome.google.com/webstore/detail/topaz-sigplusextlite-back/dhcpobccjkdnmibckgpejmbpmpembgco -### Premium Partners +**Til Mozilla Firefox**: https://addons.mozilla.org/en-US/firefox/addon/topaz-sigplusextlite-extension/ -- **[Vehikl](https://vehikl.com/)** -- **[Tighten Co.](https://tighten.co)** -- **[Kirschbaum Development Group](https://kirschbaumdevelopment.com)** -- **[64 Robots](https://64robots.com)** -- **[Cubet Techno Labs](https://cubettech.com)** -- **[Cyber-Duck](https://cyber-duck.co.uk)** -- **[Many](https://www.many.co.uk)** -- **[Webdock, Fast VPS Hosting](https://www.webdock.io/en)** -- **[DevSquad](https://devsquad.com)** -- **[Curotec](https://www.curotec.com/services/technologies/laravel/)** -- **[OP.GG](https://op.gg)** -- **[WebReinvent](https://webreinvent.com/?utm_source=laravel&utm_medium=github&utm_campaign=patreon-sponsors)** -- **[Lendio](https://lendio.com)** +**Til Opera** : https://addons.opera.com/en/extensions/details/download-chrome-extension-9/?display=en -## Contributing +## Instruktioner +### På Server +1. Kopier filen .env.example og omdøb den kopieret fil til '.env' (intet fil navn, kun extension) -Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). +2. Opret MySQL / MariaDB database med navnet: lagerdb2 -## Code of Conduct +#### Fra Repo Root Directory +3. Kør følgende kommandoer: -In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + composer install + composer update + php artisan migrate --seed -## Security Vulnerabilities +2. Kopier filerne fra "DependencyFix" directory til directory \vendor\mailjet\laravel-mailjet\src -If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. +### På Klient +1. Installer det påkrævede software + +2. Installer de relevante påkrævede browser extensions -## License -The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/database/seeders/BuildingSeeder.php b/database/seeders/BuildingSeeder.php index 0b5fb73..36cf4bf 100644 --- a/database/seeders/BuildingSeeder.php +++ b/database/seeders/BuildingSeeder.php @@ -16,9 +16,6 @@ class BuildingSeeder extends Seeder public function run() { $items = [ - ['name' => 'Bygning 7'], - ['name' => 'Bygning 8'], - ['name' => 'Test Building'], ]; foreach ($items as $item) { Building::create($item); diff --git a/database/seeders/ProductModelSeeder.php b/database/seeders/ProductModelSeeder.php index 786765c..2235c73 100644 --- a/database/seeders/ProductModelSeeder.php +++ b/database/seeders/ProductModelSeeder.php @@ -17,7 +17,6 @@ class ProductModelSeeder extends Seeder public function run() { $items = [ - ['brand_id' => Brand::where('name','=','Test Brand')->first()->id,'name' => 'Test Model'], ]; foreach ($items as $item) { ProductModel::create($item); diff --git a/database/seeders/ProductSeeder.php b/database/seeders/ProductSeeder.php index 1cc8c59..eb89006 100644 --- a/database/seeders/ProductSeeder.php +++ b/database/seeders/ProductSeeder.php @@ -20,25 +20,6 @@ class ProductSeeder extends Seeder public function run() { $items = [ - [ - 'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id, - 'product_subcategory_id' => ProductSubcategory::where('name','=','Server Rum')->first()->id, - 'brand_id' => Brand::where('name','=','Test Brand')->first()->id, - 'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id, - 'name' => 'Test Product', - 'description' => "Test Description", - 'total' => 100, - 'barcode' => "Test.Product.0001", - ], - [ - 'product_category_id' => ProductCategory::where('name','=','Laptop')->first()->id, - 'brand_id' => Brand::where('name','=','Test Brand')->first()->id, - 'product_model_id' => ProductModel::where('name','=','Test Model')->first()->id, - 'name' => 'Test Product 2', - 'description' => "Test Description 2", - 'total' => 100, - 'barcode' => "Test.Product.0002", - ], ]; foreach ($items as $item) { Product::create($item); diff --git a/database/seeders/RoomSeeder.php b/database/seeders/RoomSeeder.php index a9dde05..ffe1b73 100644 --- a/database/seeders/RoomSeeder.php +++ b/database/seeders/RoomSeeder.php @@ -17,8 +17,6 @@ class RoomSeeder extends Seeder public function run() { $items = [ - ['building_id' => Building::where('name','=','Bygning 7')->first()->id,'name' => '7X1'], - ['building_id' => Building::where('name','=','Bygning 8')->first()->id,'name' => '8X1'], ]; foreach ($items as $item) { Room::create($item); diff --git a/database/seeders/UserSeeder.php b/database/seeders/UserSeeder.php index 7bd91db..b3108b5 100644 --- a/database/seeders/UserSeeder.php +++ b/database/seeders/UserSeeder.php @@ -16,62 +16,6 @@ class UserSeeder extends Seeder */ public function run() { - User::firstOrCreate([ - 'name' => "Danny Johansson", - 'username' => 'dann4624', - 'guid' => '5e5417ed-d489-4376-a2d3-c263e70fe15e', - 'domain' => 'default', - 'password' => Hash::make('Nimai!1159'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'adUser')->id, - 'role_id' => 1 - ]); - User::firstOrCreate([ - 'name' => "Ynnad Nossnahoj", - 'username' => 'dann4625', - 'password' => Hash::make('Nimai!1159'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 1 - ]); - - User::firstOrCreate([ - 'name' => "Demo Admin", - 'username' => 'demo_admin', - 'password' => Hash::make('Pass1234'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 1 - ]); - - User::firstOrCreate([ - 'name' => "Demo Student", - 'username' => 'demo_student', - 'password' => Hash::make('Pass1234'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 2 - ]); - - User::firstOrCreate([ - 'name' => "Demo Teacher", - 'username' => 'demo_teacher', - 'password' => Hash::make('Pass1234'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 3 - ]); - - User::firstOrCreate([ - 'name' => "Demo Helper", - 'username' => 'demo_helper', - 'password' => Hash::make('Pass1234'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 4 - ]); - - User::firstOrCreate([ - 'name' => "Demo Server", - 'username' => 'demo_server', - 'password' => Hash::make('Pass1234'), - 'loaner_type_id' => LoanerType::all()->firstWhere('name','=', 'nadUser')->id, - 'role_id' => 5 - ]); } } diff --git a/resources/views/loans/form_input.blade.php b/resources/views/loans/form_input.blade.php index 069da59..6d37cde 100644 --- a/resources/views/loans/form_input.blade.php +++ b/resources/views/loans/form_input.blade.php @@ -17,4 +17,3 @@
@include('Partials.Form.Signature.loaner') @include('Partials.Form.Signature.lender') -@include('Partials.Form.Signature.fake_full') diff --git a/resources/views/loans/laptop/form_input.blade.php b/resources/views/loans/laptop/form_input.blade.php index d609ff7..5a5c853 100644 --- a/resources/views/loans/laptop/form_input.blade.php +++ b/resources/views/loans/laptop/form_input.blade.php @@ -21,4 +21,3 @@
@include('Partials.Form.Signature.loaner') @include('Partials.Form.Signature.lender') -@include('Partials.Form.Signature.fake_full') diff --git a/resources/views/reservations/validate.blade.php b/resources/views/reservations/validate.blade.php index c5877c3..41a529b 100644 --- a/resources/views/reservations/validate.blade.php +++ b/resources/views/reservations/validate.blade.php @@ -77,7 +77,6 @@
@include('Partials.Form.Signature.loaner') @include('Partials.Form.Signature.lender') - @include('Partials.Form.Signature.fake_full')