Skip to content

Commit

Permalink
Remove seeders
Browse files Browse the repository at this point in the history
They have not been documented in a long time, since they are
confusing people (people would put them *inside* Laravel
seeders). Use Laravel seeders directly in its place.
  • Loading branch information
JosephSilber committed Dec 25, 2017
1 parent a472079 commit 55c392b
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 346 deletions.
26 changes: 0 additions & 26 deletions src/Bouncer.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
use Illuminate\Contracts\Auth\Access\Gate;
use Illuminate\Contracts\Cache\Repository as CacheRepository;

use Silber\Bouncer\Seed\Seeder;
use Silber\Bouncer\Database\Models;

class Bouncer
Expand Down Expand Up @@ -61,31 +60,6 @@ public static function make($user = null)
return new Factory($user);
}

/**
* Register a seeder callback.
*
* @param \Closure|string $seeder
* @return $this
*/
public function seeder($seeder)
{
$this->resolve(Seeder::class)->register($seeder);

return $this;
}

/**
* Run the registered seeders.
*
* @return $this
*/
public function seed()
{
$this->resolve(Seeder::class)->run();

return $this;
}

/**
* Start a chain, to allow the given authority an ability.
*
Expand Down
74 changes: 0 additions & 74 deletions src/Seed/SeedCommand.php

This file was deleted.

83 changes: 0 additions & 83 deletions src/Seed/Seeder.php

This file was deleted.

68 changes: 0 additions & 68 deletions tests/Seed/SeedCommandTest.php

This file was deleted.

95 changes: 0 additions & 95 deletions tests/Seed/SeederTest.php

This file was deleted.

0 comments on commit 55c392b

Please sign in to comment.