generated from spatie/package-skeleton-laravel
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
dc7f981
commit d551952
Showing
3 changed files
with
32 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 |
---|---|---|
|
@@ -21,6 +21,13 @@ jobs: | |
|
||
- name: Fix PHP code style issues | ||
uses: aglipanci/[email protected] | ||
with: | ||
preset: laravel | ||
verboseMode: true | ||
testMode: true | ||
configPath: "pint.json" | ||
pintVersion: 1.8.0 | ||
onlyDirty: true | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
|
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,3 @@ | ||
{ | ||
"preset": "laravel" | ||
} |
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,22 @@ | ||
<?php | ||
|
||
namespace JamesDordoy\HTMLable\Actions; | ||
|
||
use Illuminate\Support\Facades\Route; | ||
use JamesDordoy\HTMLable\Http\Controllers\Documents\DocumentsController; | ||
use JamesDordoy\HTMLable\Http\Controllers\Documents\ParseDocumentController; | ||
use JamesDordoy\HTMLable\Http\Controllers\Elements\ElementsController; | ||
use JamesDordoy\HTMLable\Http\Controllers\Elements\ParseElementController; | ||
use JamesDordoy\HTMLable\Http\Controllers\ValuesController; | ||
|
||
class RegisterRoutes | ||
{ | ||
public function __invoke() { | ||
|
||
Route::resource('/htmlable/documents', DocumentsController::class); | ||
Route::get('/htmlable/documents/{document}/render', ParseDocumentController::class); | ||
Route::resource('/htmlable/elements', ElementsController::class); | ||
Route::get('/htmlable/elements/{element}/render', ParseElementController::class); | ||
Route::resource('/htmlable/values', ValuesController::class); | ||
} | ||
} |