Skip to content

Commit d5c2b00

Browse files
committed
Feature/security (#566)
1 parent fb4066e commit d5c2b00

33 files changed

+1394
-583
lines changed

README.md

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
1-
![Moox Builder](https://github.com/mooxphp/moox/raw/main/art/banner/builder.jpg)
1+
![Moox Security](https://github.com/mooxphp/moox/raw/main/art/banner/security.jpg)
22

3-
# Moox Builder
3+
# Moox Security
44

5-
<!--shortdesc-->
6-
7-
This template is used for generating all Moox packages. Press the Template-Button in GitHub, to create your own.
8-
9-
If you install it, it will completely work without beeing useful. Guaranteed!
10-
11-
<!--/shortdesc-->
5+
This is my package security
126

137
## Quick Installation
148

159
These two commmands are all you need to install the package:
1610

1711
```bash
18-
composer require moox/builder
19-
php artisan mooxbuilder:install
12+
composer require moox/security
13+
php artisan mooxsecurity:install
2014
```
2115

2216
Curious what the install command does? See manual installation below.
@@ -31,15 +25,15 @@ Here are some things missing, like an overview with screenshots about this packa
3125

3226
## Manual Installation
3327

34-
Instead of using the install-command `php artisan mooxbuilder:install` you are able to install this package manually step by step:
28+
Instead of using the install-command `php artisan mooxsecurity:install` you are able to install this package manually step by step:
3529

3630
```bash
3731
// Publish and run the migrations:
38-
php artisan vendor:publish --tag="builder-migrations"
32+
php artisan vendor:publish --tag="security-migrations"
3933
php artisan migrate
4034

4135
// Publish the config file with:
42-
php artisan vendor:publish --tag="builder-config"
36+
php artisan vendor:publish --tag="security-config"
4337
```
4438

4539
## Changelog

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Supported Versions
44

5-
We maintain the current version of `Moox Builder` actively.
5+
We maintain the current version of `Moox Security` actively.
66

77
Do not expect security fixes for older versions.
88

build.php

Lines changed: 0 additions & 231 deletions
This file was deleted.

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "moox/builder",
3-
"description": "This template is used for generating all Moox packages.",
2+
"name": "moox/security",
3+
"description": "This is my package security",
44
"keywords": [
55
"Laravel",
66
"Filament",
@@ -21,13 +21,13 @@
2121
},
2222
"autoload": {
2323
"psr-4": {
24-
"Moox\\Builder\\": "src"
24+
"Moox\\Security\\": "src"
2525
}
2626
},
2727
"extra": {
2828
"laravel": {
2929
"providers": [
30-
"Moox\\Builder\\BuilderServiceProvider"
30+
"Moox\\Security\\SecurityServiceProvider"
3131
]
3232
}
3333
},

config/builder.php

Lines changed: 0 additions & 5 deletions
This file was deleted.

config/security.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
3+
use Illuminate\Validation\Rules\Password;
4+
5+
return [
6+
'navigation_sort' => 2001,
7+
8+
'auth' => [
9+
'web' => [
10+
'username' => 'name',
11+
'email' => 'email',
12+
'password' => 'password',
13+
],
14+
],
15+
16+
// Using Laravel Password Validation
17+
'password' => [
18+
'rules' => Password::min(20)
19+
->max(64)
20+
->mixedCase()
21+
->numbers()
22+
->symbols()
23+
->uncompromised(),
24+
],
25+
];

database/migrations/create_items_table.php.stub

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)