Skip to content

Commit

Permalink
feat: add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
regnerisch committed Dec 1, 2023
1 parent e538300 commit f458e96
Show file tree
Hide file tree
Showing 12 changed files with 118 additions and 6 deletions.
Empty file added docs/.nojekyll
Empty file.
13 changes: 13 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Laravel Beyond

*This package is inspired by "[Laravel Beyond CRUD](https://spatie.be/products/laravel-beyond-crud)" from Spatie
and "[Modularising the Monolith](https://www.youtube.com/watch?v=0Rq-yHAwYjQ&t=4129s)" from Ryuta Hamasaki.*


This package will help you with `beyond:make` commands to easily create classes inside your "Laravel Beyond CRUD"
inspired application.
We try to implement commands as near as possible on their original `make` counterparts.

In version 7 we completely changed the way how Laravel Beyond works. We now do no longer change Laravels default
directory structure, instead we place the DDD structure inside a separate `modules` directory. This ensures
compatibility with any other (Laravel related) package.
2 changes: 2 additions & 0 deletions docs/_navbar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Translations
* [:de: Deutsch](de/)
5 changes: 5 additions & 0 deletions docs/_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Getting Started
* [Installation](installation.md)
* [Upgrade Guide](upgrade.md)
* Commands
* [MakeActionCommand](make-action-command.md)
13 changes: 13 additions & 0 deletions docs/de/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Laravel Beyond

*Dieses Paket ist inspiriert von "[Laravel Beyond CRUD](https://spatie.be/products/laravel-beyond-crud)" von Spatie
und "[Modularising the Monolith](https://www.youtube.com/watch?v=0Rq-yHAwYjQ&t=4129s)" von Ryuta Hamasaki.


Dieses Paket wird Ihnen mit `beyond:make`-Befehlen helfen, auf einfache Weise Klassen innerhalb Ihrer "Laravel Beyond CRUD"
inspirierten Anwendung zu erstellen.
Wir versuchen, die Befehle so nah wie möglich an ihre ursprünglichen `make`-Pendants zu implementieren.

In Version 7 haben wir die Arbeitsweise von Laravel Beyond komplett geändert. Wir ändern jetzt nicht mehr Laravels Standard
Verzeichnisstruktur, stattdessen platzieren wir die DDD-Struktur in einem separaten `modules`-Verzeichnis. Dies gewährleistet
Kompatibilität mit allen anderen (Laravel-bezogenen) Paketen.
2 changes: 2 additions & 0 deletions docs/de/_navbar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Translations
* [:gb: English](/)
5 changes: 5 additions & 0 deletions docs/de/_sidebar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* Loslegen
* [Installation](de/installation.md)
* [Update Anleitung](de/upgrade.md)
* Befehle
* [MakeActionCommand](de/make-action-command.md)
20 changes: 20 additions & 0 deletions docs/de/make-action-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# MakeActionCommand
Erstellt eine neue Aktionsklasse innerhalb des angegebenen Moduls.

> Aktionen werden in `modules/{Module}/Domain/Actions` gespeichert
## Anwenden
```bash
php artisan beyond:make:action User.Admin/CreateUserAction
php artisan beyond:make:action User.CreateUserAction
```

### Befehl
`beyond:make:action`

### Optionen
| Name | Kurz | Beschreibung | Beispiel |
|---------|------|--------------------------------------|----------|
| --force | | Überschreibt eine existierende Datei | |


32 changes: 32 additions & 0 deletions docs/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!-- index.html -->

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta charset="UTF-8" />
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/themes/vue.css"/>
</head>
<body>
<div id="app"></div>
<script>
window.$docsify = {
loadNavbar: true,
loadSidebar: true,
subMaxLevel: 2,
search: 'auto',
name: 'Laravel Beyond',
nameLink: {
'/de/': '#/de/',
'/': '#/',
},
}
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-php.min.js"></script>
</body>
</html>
6 changes: 6 additions & 0 deletions docs/installation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Installation
It's recommended to install `laravel-beyond` with [composer](https://composer.org).

```bash
composer require --dev akrillia/laravel-beyond
```
20 changes: 20 additions & 0 deletions docs/make-action-command.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# MakeActionCommand
Creates a new action class inside the given module.

> Actions will be placed in `modules/{Module}/Domain/Actions`
## Usage
```bash
php artisan beyond:make:action User.Admin/CreateUserAction
php artisan beyond:make:action User.CreateUserAction
```

### Command
`beyond:make:action`

### Flags
| Name | Short | Description | Example |
|---------|-------|--------------------------|---------|
| --force | | Overwrites existing file | |


6 changes: 0 additions & 6 deletions UPGRADE.md → docs/upgrade.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
# Upgrade Guide

- [Upgrade to 7.x from 6.x](#upgrade-to-7x-from-6x)
- [Upgrade to 5.x from 4.x](#upgrade-to-5x-from-4x)
- [Upgrade to 4.x from 3.x](#upgrade-to-4x-from-3x)

## Upgrade to 7.x from 6.x
### Directory Structure
### Dropped Commands
We decided to drop following Commands:

- `beyond:make:command`
- `beyond:make:route`
- `beyond:make:trait`
- `beyond:setup`
Expand Down

0 comments on commit f458e96

Please sign in to comment.