Skip to content

Commit 56c5064

Browse files
Install inertia.js progress indicator
1 parent 3d785d5 commit 56c5064

File tree

4 files changed

+11
-8
lines changed

4 files changed

+11
-8
lines changed

database/factories/UserFactory.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function definition(): array
3232
'two_factor_secret' => null,
3333
'two_factor_recovery_codes' => null,
3434
'remember_token' => Str::random(10),
35-
'profile_photo_path' => null,
35+
// 'profile_photo_path' => null,
3636
'current_team_id' => null,
3737
];
3838
}
@@ -58,14 +58,14 @@ public function unverified(): static
5858
*/
5959
public function withPersonalTeam(): static
6060
{
61-
if (! Features::hasTeamFeatures()) {
61+
if (!Features::hasTeamFeatures()) {
6262
return $this->state([]);
6363
}
6464

6565
return $this->has(
6666
Team::factory()
6767
->state(function (array $attributes, User $user) {
68-
return ['name' => $user->name.'\'s Team', 'user_id' => $user->id, 'personal_team' => true];
68+
return ['name' => $user->name . '\'s Team', 'user_id' => $user->id, 'personal_team' => true];
6969
}),
7070
'ownedTeams'
7171
);

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"vue": "^3.2.31"
1919
},
2020
"dependencies": {
21-
"@fortawesome/fontawesome-free": "^6.3.0"
21+
"@fortawesome/fontawesome-free": "^6.3.0",
22+
"nprogress": "^0.2.0"
2223
}
2324
}

resources/js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ createInertiaApp({
2020
.mount(el);
2121
},
2222
progress: {
23-
color: '#1266db',
23+
showSpinner: true,
24+
delay: 1,
25+
color: '#6875F5',
2426
},
2527
});

0 commit comments

Comments
 (0)