-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
99ca597
commit 29f83f6
Showing
70 changed files
with
3,281 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [mooxphp] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Environment | ||
.env | ||
.env.backup | ||
|
||
# Composer | ||
/vendor | ||
composer.lock | ||
auth.json | ||
|
||
# NPM / Node | ||
/node_modules | ||
npm-debug.log | ||
package-lock.json | ||
|
||
# Laravel | ||
/public/hot | ||
/public/storage | ||
/storage/*.key | ||
|
||
# PHPUnit | ||
.phpunit.result.cache | ||
phpunit.xml | ||
|
||
# Yarn | ||
yarn-error.log | ||
|
||
# PHPStan | ||
/build | ||
phpstan.neon | ||
|
||
# Testbench | ||
testbench.yaml | ||
|
||
# PHP CS Fixer | ||
.php-cs-fixer.cache | ||
|
||
# Homestead | ||
Homestead.json | ||
Homestead.yaml | ||
|
||
# IDEs | ||
/.idea | ||
/.vscode | ||
|
||
# MacOS | ||
.DS_Store | ||
|
||
# Windows | ||
Thumbs.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# Changelog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# These are supported funding model platforms | ||
|
||
github: [mooxphp] | ||
patreon: # Replace with a single Patreon username | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry | ||
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) Moox <devs@moox.org> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
![Moox Training](https://github.com/mooxphp/moox/raw/main/art/banner/trainings.jpg) | ||
|
||
# Moox Training | ||
|
||
This is my package trainings | ||
|
||
## Quick Installation | ||
|
||
These two commmands are all you need to install the package: | ||
|
||
```bash | ||
composer require moox/trainings | ||
php artisan mooxtrainings:install | ||
``` | ||
|
||
Curious what the install command does? See manual installation below. | ||
|
||
## What it does | ||
|
||
<!--whatdoes--> | ||
|
||
Here are some things missing, like an overview with screenshots about this package, or simply a link to the package's docs. | ||
|
||
<!--/whatdoes--> | ||
|
||
## Manual Installation | ||
|
||
Instead of using the install-command `php artisan mooxtrainings:install` you are able to install this package manually step by step: | ||
|
||
```bash | ||
// Publish and run the migrations: | ||
php artisan vendor:publish --tag="trainings-migrations" | ||
php artisan migrate | ||
|
||
// Publish the config file with: | ||
php artisan vendor:publish --tag="trainings-config" | ||
``` | ||
|
||
## Changelog | ||
|
||
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently. | ||
|
||
## Security Vulnerabilities | ||
|
||
Please review [our security policy](https://github.com/mooxphp/moox/security/policy) on how to report security vulnerabilities. | ||
|
||
## Credits | ||
|
||
- [All Contributors](../../contributors) | ||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Security Policy | ||
|
||
## Supported Versions | ||
|
||
We maintain the current version of `Moox Training` actively. | ||
|
||
Do not expect security fixes for older versions. | ||
|
||
## Reporting a Vulnerability | ||
|
||
If you find any security-related bug, please report it to security@moox.org. | ||
|
||
Please do not use Github issues, to give us enough time to review and fix the issue, before others can use it, to do stupid things. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "moox/trainings", | ||
"description": "This is my package trainings", | ||
"keywords": [ | ||
"Laravel", | ||
"Filament", | ||
"Filament plugin", | ||
"Laravel package" | ||
], | ||
"homepage": "https://moox.org/", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Moox Developer", | ||
"email": "dev@moox.org", | ||
"role": "Developer" | ||
} | ||
], | ||
"require": { | ||
"moox/core": "*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Moox\\Training\\": "src" | ||
} | ||
}, | ||
"extra": { | ||
"laravel": { | ||
"providers": [ | ||
"Moox\\Training\\TrainingServiceProvider" | ||
] | ||
} | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
return [ | ||
'navigation_sort' => 2001, | ||
|
||
// Wire with one or more user models | ||
'user_models' => [ | ||
'App Users' => \App\Models\User::class, | ||
], | ||
|
||
// Disable manual action buttons in UI | ||
// and queue the provided jobs instead | ||
'create_trainings_action' => true, | ||
'training_invitations_collect_action' => true, | ||
'training_invitations_send_action' => true, | ||
]; |
30 changes: 30 additions & 0 deletions
30
packages/trainings/database/migrations/create_training_dateables_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('training_dateables', function (Blueprint $table) { | ||
$table->unsignedBigInteger('training_date_id'); | ||
$table->unsignedBigInteger('training_dateable_id'); | ||
$table->string('training_dateable_type'); | ||
|
||
$table->index('training_dateable_id'); | ||
$table->index('training_dateable_type'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('training_dateables'); | ||
} | ||
}; |
36 changes: 36 additions & 0 deletions
36
packages/trainings/database/migrations/create_training_dates_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('training_dates', function (Blueprint $table) { | ||
$table->bigIncrements('id'); | ||
$table->unsignedBigInteger('training_invitation_id'); | ||
$table->dateTime('begin'); | ||
$table->dateTime('end'); | ||
$table->set('type', ['onsite', 'teams', 'webex', 'slack', 'zoom']); | ||
$table->string('link')->nullable(); | ||
$table->string('location')->nullable(); | ||
$table->integer('min_participants')->nullable(); | ||
$table->integer('max_participants')->nullable(); | ||
$table->dateTime('sent_at')->nullable(); | ||
|
||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('training_dates'); | ||
} | ||
}; |
30 changes: 30 additions & 0 deletions
30
packages/trainings/database/migrations/create_training_invitationables_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('training_invitationables', function (Blueprint $table) { | ||
$table->unsignedBigInteger('training_invitation_id'); | ||
$table->unsignedBigInteger('training_invitationable_id'); | ||
$table->string('training_invitationable_type'); | ||
|
||
$table->index('training_invitationable_id'); | ||
$table->index('training_invitationable_type'); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('training_invitationables'); | ||
} | ||
}; |
32 changes: 32 additions & 0 deletions
32
packages/trainings/database/migrations/create_training_invitations_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('training_invitations', function (Blueprint $table) { | ||
$table->bigIncrements('id'); | ||
$table->unsignedBigInteger('training_id'); | ||
$table->string('title'); | ||
$table->string('slug'); | ||
$table->text('content')->nullable(); | ||
$table->string('status'); | ||
|
||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('training_invitations'); | ||
} | ||
}; |
30 changes: 30 additions & 0 deletions
30
packages/trainings/database/migrations/create_training_types_table.php.stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
use Illuminate\Support\Facades\Schema; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Database\Migrations\Migration; | ||
|
||
return new class extends Migration { | ||
/** | ||
* Run the migrations. | ||
*/ | ||
public function up(): void | ||
{ | ||
Schema::create('training_types', function (Blueprint $table) { | ||
$table->bigIncrements('id'); | ||
$table->string('title'); | ||
$table->string('slug'); | ||
$table->text('description')->nullable(); | ||
|
||
$table->timestamps(); | ||
}); | ||
} | ||
|
||
/** | ||
* Reverse the migrations. | ||
*/ | ||
public function down(): void | ||
{ | ||
Schema::dropIfExists('training_types'); | ||
} | ||
}; |
Oops, something went wrong.