Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/deploy-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ jobs:
run: yarn install --frozen-lockfile --ignore-engines

- name: Build assets
run: npm run production
run: yarn build

- name: Create deployment package
run: |
rm -rf deployment-package || true
TEMP_DIR=$(mktemp -d)
# Includes Vite's public/build
rsync -av \
--exclude=node_modules \
--exclude=.git \
Expand All @@ -97,7 +98,7 @@ jobs:
--exclude=storage/logs \
--exclude=vendor \
. "$TEMP_DIR/"
cp -r public/css public/js public/fonts public/images public/svg public/mix-manifest.json "$TEMP_DIR/public/" || true
test -f "$TEMP_DIR/public/build/manifest.json"
mv "$TEMP_DIR" deployment-package

- name: Upload deployment artifact
Expand Down
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/node_modules
/public/build
/public/hot
/public/storage
/public/css
/public/fonts
/public/images
/public/js
/public/mix-manifest.json
/storage/*.key
/vendor
.env
Expand Down
38 changes: 0 additions & 38 deletions app/Http/Middleware/Authenticate.php

This file was deleted.

34 changes: 0 additions & 34 deletions app/Http/Middleware/PreventRequestsDuringMaintenance.php

This file was deleted.

49 changes: 0 additions & 49 deletions app/Http/Middleware/RedirectIfAuthenticated.php

This file was deleted.

36 changes: 0 additions & 36 deletions app/Http/Middleware/TrimStrings.php

This file was deleted.

37 changes: 0 additions & 37 deletions app/Http/Middleware/TrustHosts.php

This file was deleted.

45 changes: 0 additions & 45 deletions app/Http/Middleware/TrustProxies.php

This file was deleted.

39 changes: 0 additions & 39 deletions app/Http/Middleware/ValidateSignature.php

This file was deleted.

7 changes: 7 additions & 0 deletions app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use App\View\Composers\CourseComposer;
use App\View\Composers\NoticesComposer;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\Schema;
use Illuminate\Support\ServiceProvider;

Expand All @@ -44,6 +45,12 @@ public function boot(): void
{
Schema::defaultStringLength(191);

// Implicitly grant "Super Admin" role all permissions
// This works in the app by using gate-related functions like auth()->user->can() and @can()
Gate::before(function ($user, $ability) {
return $user->hasRole('Super Admin') ? true : null;
});

\View::composer(
'partials.notices', NoticesComposer::class
);
Expand Down
52 changes: 0 additions & 52 deletions app/Providers/AuthServiceProvider.php

This file was deleted.

Loading
Loading