Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
SethSharp committed Jan 23, 2024
1 parent 51b0912 commit 18f1d5b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
7 changes: 7 additions & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
namespace Database\Seeders;

// use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use App\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\Hash;

class DatabaseSeeder extends Seeder
{
Expand All @@ -14,5 +16,10 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
User::factory()->create([
'name' => 'Admin',
'email' => '[email protected]',
'password' => Hash::make('123456')
]);
}
}
12 changes: 10 additions & 2 deletions resources/js/Layouts/AuthenticatedLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ import ResponsiveNavLink from '@/Components/ResponsiveNavLink.vue';
import { Link } from '@inertiajs/vue3';
const showingNavigationDropdown = ref(false);
const links = [
{
name: 'Dashboard',
link: route('dashboard'),
active: route().current('dashboard')
},
]
</script>

<template>
Expand All @@ -29,8 +37,8 @@ const showingNavigationDropdown = ref(false);

<!-- Navigation Links -->
<div class="hidden space-x-8 sm:-my-px sm:ml-10 sm:flex">
<NavLink :href="route('dashboard')" :active="route().current('dashboard')">
Dashboard
<NavLink v-for="link in links" :href="link.link" :active="link.active">
{{ link.name}}
</NavLink>
</div>
</div>
Expand Down

0 comments on commit 18f1d5b

Please sign in to comment.