From dfb7d287d8b453ff467506324fcc75312e97201f Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 26 May 2023 21:23:48 +0200 Subject: [PATCH] =?UTF-8?q?Initial=20Commit=20f=C3=BCr=20aktuelle=20Rauru?= =?UTF-8?q?=20Sourcen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 12 ++-- README.md | 67 ++++++++++++++++++- app/Http/Controllers/ModpackController.php | 10 +++ app/Models/mod.php | 11 +++ app/Models/modpack.php | 11 +++ artisan | 0 database/factories/ModpackFactory.php | 23 +++++++ .../2023_05_26_205735_create_mods_table.php | 27 ++++++++ ...023_05_26_205807_create_modpacks_table.php | 27 ++++++++ database/seeders/ModpackSeeder.php | 17 +++++ 10 files changed, 197 insertions(+), 8 deletions(-) create mode 100644 app/Http/Controllers/ModpackController.php create mode 100644 app/Models/mod.php create mode 100644 app/Models/modpack.php mode change 100644 => 100755 artisan create mode 100644 database/factories/ModpackFactory.php create mode 100644 database/migrations/2023_05_26_205735_create_mods_table.php create mode 100644 database/migrations/2023_05_26_205807_create_modpacks_table.php create mode 100644 database/seeders/ModpackSeeder.php diff --git a/.env.example b/.env.example index 5a91789..478972c 100644 --- a/.env.example +++ b/.env.example @@ -8,12 +8,12 @@ LOG_CHANNEL=stack LOG_DEPRECATIONS_CHANNEL=null LOG_LEVEL=debug -DB_CONNECTION=pgsql -DB_HOST=db -DB_PORT=5432 -DB_DATABASE=rauru_db -DB_USERNAME=rauru_user -DB_PASSWORD=secret +DB_CONNECTION=mysql +DB_HOST=127.0.0.1 +DB_PORT=3306 +DB_DATABASE=laravel +DB_USERNAME=root +DB_PASSWORD= BROADCAST_DRIVER=log CACHE_DRIVER=file diff --git a/README.md b/README.md index 903dc4b..3ed385a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,66 @@ -# Rauru-GameLib +

Laravel Logo

-Eine auf Laravel basierende Aplikation zur Verwaltung und Launchen von Games, Versionen/Varianten und Mods/Modpacks. \ No newline at end of file +

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

+ +## About Laravel + +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: + +- [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). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +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. + +You may also try the [Laravel Bootcamp](https://bootcamp.laravel.com), where you will be guided through building a modern Laravel application from scratch. + +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. + +## 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). + +### Premium Partners + +- **[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)** + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +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). + +## Security Vulnerabilities + +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. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Http/Controllers/ModpackController.php b/app/Http/Controllers/ModpackController.php new file mode 100644 index 0000000..2136b6a --- /dev/null +++ b/app/Http/Controllers/ModpackController.php @@ -0,0 +1,10 @@ + + */ +class ModpackFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/database/migrations/2023_05_26_205735_create_mods_table.php b/database/migrations/2023_05_26_205735_create_mods_table.php new file mode 100644 index 0000000..3aed09c --- /dev/null +++ b/database/migrations/2023_05_26_205735_create_mods_table.php @@ -0,0 +1,27 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('mods'); + } +}; diff --git a/database/migrations/2023_05_26_205807_create_modpacks_table.php b/database/migrations/2023_05_26_205807_create_modpacks_table.php new file mode 100644 index 0000000..495608f --- /dev/null +++ b/database/migrations/2023_05_26_205807_create_modpacks_table.php @@ -0,0 +1,27 @@ +id(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('modpacks'); + } +}; diff --git a/database/seeders/ModpackSeeder.php b/database/seeders/ModpackSeeder.php new file mode 100644 index 0000000..a6578a9 --- /dev/null +++ b/database/seeders/ModpackSeeder.php @@ -0,0 +1,17 @@ +