@@ -12,7 +12,7 @@ discard block |
||
12 | 12 | */ |
13 | 13 | public function up() |
14 | 14 | { |
15 | - Schema::create('notes', function (Blueprint $table) { |
|
15 | + Schema::create('notes', function(Blueprint $table) { |
|
16 | 16 | $table->increments('id'); |
17 | 17 | $table->boolean('published')->default(0); |
18 | 18 | $table->enum('type', ['general', 'delivery', 'payment']); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $table->timestamps(); |
24 | 24 | }); |
25 | 25 | |
26 | - Schema::create('note_translations', function (Blueprint $table) { |
|
26 | + Schema::create('note_translations', function(Blueprint $table) { |
|
27 | 27 | $table->increments('id'); |
28 | 28 | $table->integer('note_id')->unsigned(); |
29 | 29 | $table->string('locale'); |
@@ -13,12 +13,12 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('assets', function (Blueprint $table) { |
|
16 | + Schema::create('assets', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->timestamps(); |
19 | 19 | }); |
20 | 20 | |
21 | - Schema::create('asset_pivots', function (Blueprint $table) { |
|
21 | + Schema::create('asset_pivots', function(Blueprint $table) { |
|
22 | 22 | $table->integer('asset_id'); |
23 | 23 | $table->integer('entity_id'); |
24 | 24 | $table->string('entity_type'); |
@@ -15,21 +15,21 @@ discard block |
||
15 | 15 | { |
16 | 16 | $tableNames = config('permission.table_names'); |
17 | 17 | |
18 | - Schema::create($tableNames['permissions'], function (Blueprint $table) { |
|
18 | + Schema::create($tableNames['permissions'], function(Blueprint $table) { |
|
19 | 19 | $table->increments('id'); |
20 | 20 | $table->string('name'); |
21 | 21 | $table->string('guard_name'); |
22 | 22 | $table->timestamps(); |
23 | 23 | }); |
24 | 24 | |
25 | - Schema::create($tableNames['roles'], function (Blueprint $table) { |
|
25 | + Schema::create($tableNames['roles'], function(Blueprint $table) { |
|
26 | 26 | $table->increments('id'); |
27 | 27 | $table->string('name'); |
28 | 28 | $table->string('guard_name'); |
29 | 29 | $table->timestamps(); |
30 | 30 | }); |
31 | 31 | |
32 | - Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
32 | + Schema::create($tableNames['model_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
33 | 33 | $table->unsignedInteger('permission_id'); |
34 | 34 | $table->morphs('model'); |
35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | $table->primary(['permission_id', 'model_id', 'model_type']); |
42 | 42 | }); |
43 | 43 | |
44 | - Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames) { |
|
44 | + Schema::create($tableNames['model_has_roles'], function(Blueprint $table) use ($tableNames) { |
|
45 | 45 | $table->unsignedInteger('role_id'); |
46 | 46 | $table->morphs('model'); |
47 | 47 | |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $table->primary(['role_id', 'model_id', 'model_type']); |
54 | 54 | }); |
55 | 55 | |
56 | - Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
56 | + Schema::create($tableNames['role_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
57 | 57 | $table->unsignedInteger('permission_id'); |
58 | 58 | $table->unsignedInteger('role_id'); |
59 | 59 |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('jobs', function (Blueprint $table) { |
|
16 | + Schema::create('jobs', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->string('queue'); |
19 | 19 | $table->longText('payload'); |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | $table->index(['queue', 'reserved_at']); |
26 | 26 | }); |
27 | 27 | |
28 | - Schema::create('failed_jobs', function (Blueprint $table) { |
|
28 | + Schema::create('failed_jobs', function(Blueprint $table) { |
|
29 | 29 | $table->bigIncrements('id'); |
30 | 30 | $table->text('connection'); |
31 | 31 | $table->text('queue'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('invitations', function (Blueprint $table) { |
|
16 | + Schema::create('invitations', function(Blueprint $table) { |
|
17 | 17 | $table->increments('id'); |
18 | 18 | $table->unsignedInteger('invitee_id'); |
19 | 19 | $table->unsignedInteger('inviter_id'); |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | return redirect()->route('chief.back.permissions.index') |
58 | 58 | ->with('flash_message', |
59 | - 'Permission'. $permission->name.' added!'); |
|
59 | + 'Permission'.$permission->name.' added!'); |
|
60 | 60 | } |
61 | 61 | /** |
62 | 62 | * Display the specified resource. |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $permission->fill($input)->save(); |
99 | 99 | return redirect()->route('chief.back.permissions.index') |
100 | 100 | ->with('flash_message', |
101 | - 'Permission'. $permission->name.' updated!'); |
|
101 | + 'Permission'.$permission->name.' updated!'); |
|
102 | 102 | } |
103 | 103 | /** |
104 | 104 | * Remove the specified resource from storage. |
@@ -42,7 +42,7 @@ |
||
42 | 42 | $role->givePermissionTo($request->permission_names); |
43 | 43 | |
44 | 44 | return redirect()->route('chief.back.roles.index') |
45 | - ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
45 | + ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | public function edit($id) |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | $role->givePermissionTo($request->permission_names); |
43 | 43 | |
44 | 44 | return redirect()->route('chief.back.roles.index') |
45 | - ->with('messages.success', 'Rol '. $role->name.' is toegevoegd.'); |
|
45 | + ->with('messages.success', 'Rol '.$role->name.' is toegevoegd.'); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | public function edit($id) |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | $role->syncPermissions($request->permission_names); |
72 | 72 | |
73 | 73 | return redirect()->route('chief.back.roles.index') |
74 | - ->with('messages.success', 'Rol '. $role->name.' is aangepast.'); |
|
74 | + ->with('messages.success', 'Rol '.$role->name.' is aangepast.'); |
|
75 | 75 | } |
76 | 76 | |
77 | 77 | public function destroy($id) |
@@ -82,6 +82,6 @@ discard block |
||
82 | 82 | $role->delete(); |
83 | 83 | |
84 | 84 | return redirect()->route('chief.back.roles.index') |
85 | - ->with('messages.success', 'Rol '. $role->name.' is verwijderd.'); |
|
85 | + ->with('messages.success', 'Rol '.$role->name.' is verwijderd.'); |
|
86 | 86 | } |
87 | 87 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | app(InviteUser::class)->handle($user, auth()->guard('chief')->user()); |
18 | 18 | |
19 | 19 | return redirect()->route('chief.back.users.index') |
20 | - ->with('messages.success', $user->fullname. ' is opnieuw een uitnodiging verstuurd.'); |
|
20 | + ->with('messages.success', $user->fullname.' is opnieuw een uitnodiging verstuurd.'); |
|
21 | 21 | } |
22 | 22 | |
23 | 23 | } |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | |
19 | 19 | public function handle($request, Closure $next) |
20 | 20 | { |
21 | - if (! $request->user() || ! $request->session()) { |
|
21 | + if (!$request->user() || !$request->session()) { |
|
22 | 22 | return $next($request); |
23 | 23 | } |
24 | 24 | |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | } |
31 | 31 | } |
32 | 32 | |
33 | - if (! $request->session()->has('password_hash')) { |
|
33 | + if (!$request->session()->has('password_hash')) { |
|
34 | 34 | $this->storePasswordHashInSession($request); |
35 | 35 | } |
36 | 36 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | $this->logout($request); |
39 | 39 | } |
40 | 40 | |
41 | - return tap($next($request), function () use ($request) { |
|
41 | + return tap($next($request), function() use ($request) { |
|
42 | 42 | $this->storePasswordHashInSession($request); |
43 | 43 | }); |
44 | 44 | } |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | */ |
52 | 52 | protected function storePasswordHashInSession($request) |
53 | 53 | { |
54 | - if (! $request->user()) { |
|
54 | + if (!$request->user()) { |
|
55 | 55 | return; |
56 | 56 | } |
57 | 57 |