Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: laravel/jetstream
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.1
Choose a base ref
...
head repository: laravel/jetstream
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.2
Choose a head ref
  • 2 commits
  • 3 files changed
  • 3 contributors

Commits on Mar 26, 2024

  1. Update CHANGELOG

    driesvints authored and github-actions[bot] committed Mar 26, 2024

    Unverified

    This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
    Copy the full SHA
    a57f6e9 View commit details

Commits on Mar 29, 2024

  1. Copy DatabaseSeeder when installing with team support (#1461)

    * Copy DatabaseSeeder when installing with team support
    
    To ensureApplicationIsTeamCompatible, the seeded test user must be created withPersonalTeam.
    
    * Update DatabaseSeeder.php
    
    ---------
    
    Co-authored-by: Dries Vints <dries@vints.be>
    miclaus and driesvints authored Mar 29, 2024

    Partially verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    We cannot verify signatures from co-authors, and some of the co-authors attributed to this commit require their commits to be signed.
    Copy the full SHA
    152c89b View commit details
Showing with 31 additions and 1 deletion.
  1. +5 −1 CHANGELOG.md
  2. +23 −0 database/seeders/DatabaseSeeder.php
  3. +3 −0 src/Console/InstallCommand.php
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Release Notes

## [Unreleased](https://github.com/laravel/jetstream/compare/v5.0.0...5.x)
## [Unreleased](https://github.com/laravel/jetstream/compare/v5.0.1...5.x)

## [v5.0.1](https://github.com/laravel/jetstream/compare/v5.0.0...v5.0.1) - 2024-03-19

* [5.x] Make commands lazy by [@timacdonald](https://github.com/timacdonald) in https://github.com/laravel/jetstream/pull/1455

## [v5.0.0](https://github.com/laravel/jetstream/compare/v4.3.1...v5.0.0) - 2024-03-12

23 changes: 23 additions & 0 deletions database/seeders/DatabaseSeeder.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

namespace Database\Seeders;

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

class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*/
public function run(): void
{
// User::factory(10)->withPersonalTeam()->create();

User::factory()->withPersonalTeam()->create([
'name' => 'Test User',
'email' => 'test@example.com',
]);
}
}
3 changes: 3 additions & 0 deletions src/Console/InstallCommand.php
Original file line number Diff line number Diff line change
@@ -554,6 +554,9 @@ protected function ensureApplicationIsTeamCompatible()
// Factories...
copy(__DIR__.'/../../database/factories/UserFactory.php', base_path('database/factories/UserFactory.php'));
copy(__DIR__.'/../../database/factories/TeamFactory.php', base_path('database/factories/TeamFactory.php'));

// Seeders...
copy(__DIR__.'/../../database/seeders/DatabaseSeeder.php', base_path('database/seeders/DatabaseSeeder.php'));
}

/**