Skip to content

Commit b4d7c85

Browse files
authored
feat!: Global strings (#106)
* style: formatting * feat: remove global strings from PageController * style: formatting * feat: global string serviceprovider * feat: add serviceprovider to config
1 parent 515fa92 commit b4d7c85

34 files changed

+1840
-111
lines changed

.github/workflows/blade.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Fix Blade formatting
2+
3+
on: pull_request
4+
5+
jobs:
6+
format-blade:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- name: Checkout code
11+
uses: actions/checkout@v3
12+
13+
- name: Install NPM dependencies
14+
run: npm ci
15+
16+
- name: Run Blade Formatter
17+
run: node_modules/.bin/blade-formatter --write --sort-tailwindcss-classes --wrap-attributes=force-expand-multiline resources/**/*.blade.php
18+
19+
- name: Commit changes
20+
uses: stefanzweifel/git-auto-commit-action@v4
21+
with:
22+
commit_message: "style: Blade formatting"
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.PERSONAL_TOKEN }}

config/app.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
NotFound\Framework\Providers\RouteServiceProvider::class,
150150
NotFound\Framework\Providers\LogServiceProvider::class,
151151
NotFound\Framework\Providers\MigrationServiceProvider::class,
152+
NotFound\Framework\Providers\GlobalStringServiceProvider::class,
152153

153154
])->toArray(),
154155

0 commit comments

Comments
 (0)