Skip to content

Commit 96cfd83

Browse files
committed
plans wip
1 parent 6b33291 commit 96cfd83

File tree

9 files changed

+513
-376
lines changed

9 files changed

+513
-376
lines changed

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ It comes with a basic user management, role management and permissions managemen
2020

2121
- [Laravel Pint](https://github.com/laravel/pint) for code style fixes
2222
- [PestPHP](https://pestphp.com) for testing
23+
- [missing-livewire-assertions](https://github.com/christophrumpel/missing-livewire-assertions) for extra testing of Livewire components by [Christoph Rumpel](https://github.com/christophrumpel)
2324
- [Strict Eloquent Models](https://planetscale.com/blog/laravels-safety-mechanisms) for safety
2425
- [Laravel Debugbar](https://github.com/barryvdh/laravel-debugbar) for debugging
2526
- [Laravel IDE helper](https://github.com/barryvdh/laravel-ide-helper) for IDE support
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
namespace App\Livewire\Admin\Plans;
4+
5+
use Illuminate\Contracts\View\View;
6+
use LivewireUI\Modal\ModalComponent;
7+
8+
class CreatePlan extends ModalComponent
9+
{
10+
11+
public function mount(): void
12+
{
13+
abort_if(!auth()->check(), 403);
14+
abort_unless(auth()->user()->hasPermissionTo('create plans'), 403);
15+
16+
}
17+
18+
public function render(): View
19+
{
20+
return view('livewire.admin.plans.create-plan');
21+
}
22+
}

composer.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -6,27 +6,28 @@
66
"license": "MIT",
77
"require": {
88
"php": "^8.1",
9-
"guzzlehttp/guzzle": "^7.7",
10-
"jantinnerezo/livewire-alert": "^3.0",
11-
"laravel/cashier": "^14.12",
12-
"laravel/framework": "^10.20",
13-
"laravel/pint": "^1.11",
14-
"laravel/sanctum": "^3.2.6",
15-
"laravel/tinker": "^2.8.1",
16-
"livewire/livewire": "^3.0",
17-
"spatie/laravel-permission": "^5.10.2",
9+
"christophrumpel/missing-livewire-assertions": "^2.2",
10+
"guzzlehttp/guzzle": "^7.8",
11+
"jantinnerezo/livewire-alert": "^3.0.1",
12+
"laravel/cashier": "^14.12.10",
13+
"laravel/framework": "^10.29",
14+
"laravel/pint": "^1.13.5",
15+
"laravel/sanctum": "^3.3.1",
16+
"laravel/tinker": "^2.8.2",
17+
"livewire/livewire": "^3.0.10",
18+
"spatie/laravel-permission": "^5.11.1",
1819
"wire-elements/modal": "^2.0.0-beta"
1920
},
2021
"require-dev": {
21-
"barryvdh/laravel-debugbar": "^3.9.1",
22+
"barryvdh/laravel-debugbar": "^3.9.2",
2223
"barryvdh/laravel-ide-helper": "^2.13",
2324
"fakerphp/faker": "^1.23",
24-
"laravel/sail": "^1.23.4",
25+
"laravel/sail": "^1.26.0",
2526
"mockery/mockery": "^1.6.6",
2627
"nunomaduro/collision": "^v7.3.3",
2728
"pestphp/pest": "^v2.2.0",
2829
"pestphp/pest-plugin-laravel": "^2.2",
29-
"spatie/laravel-ignition": "^2.3",
30+
"spatie/laravel-ignition": "^2.3.1",
3031
"tightenco/duster": "^1.2.1"
3132
},
3233
"autoload": {

0 commit comments

Comments
 (0)