Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgergo committed Jan 24, 2024
1 parent 4a4b9ab commit 6f299ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/install-laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
sed -i -e 's#^DB_CONNECTION=.*$#DB_CONNECTION=sqlite#' .env
sed -i -e 's#^DB_DATABASE=.*$#DB_DATABASE=:memory:#' .env
php artisan key:generate
# Wait for https://github.com/conedevelopment/root/issues/155
php artisan root:install --seed
php artisan root:publish --packages
-
Expand Down
4 changes: 2 additions & 2 deletions database/seeders/RootTestDataSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Cone\Root\Database\Seeders;

use Cone\Root\Interfaces\Models\User;
use Cone\Root\Models\User;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\App;
use Illuminate\Support\Facades\Hash;
Expand All @@ -22,7 +22,7 @@ public function run(): void
*/
protected function seedUsers(): void
{
App::make(User::class)::factory()->create([
User::proxy()->newQuery()->create([
'name' => 'Root Admin',
'email' => '[email protected]',
'password' => Hash::make('password'),
Expand Down
10 changes: 9 additions & 1 deletion src/Navigation/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,18 @@ class Registry
protected array $locations = [];

/**
* Get the location.
* Get or register a new the location.
*/
public function location(string $name): Location
{
return $this->locations[$name] ??= new Location($name);
}

/**
* Get the registered. locations
*/
public function locations(): array
{
return $this->locations;
}
}

0 comments on commit 6f299ad

Please sign in to comment.