Coder Social home page Coder Social logo

Comments (5)

Tray2 avatar Tray2 commented on May 30, 2024 2

That is an option, but I feel that you shouldn't run any seeders that you don't need.

from laravel-fast-refresh-database.

sinnbeck avatar sinnbeck commented on May 30, 2024 1

If you set the seeder on your TestCase class it will automatically be seeded with the migrations (once). Just be aware that changes to this seeder will require that you manually delete or alter the checksum file

public $seeder = SomeSeeder::class

from laravel-fast-refresh-database.

krzysztofrewak avatar krzysztofrewak commented on May 30, 2024

I was thinking about the same issue. Maybe the better approach would be to run all migrations with seeders once and then created a dump of entire "base" database. With this approach migrate:fresh would not be ran anymore as we would need to recreate a dump file.

from laravel-fast-refresh-database.

Tray2 avatar Tray2 commented on May 30, 2024

I tried that, but it didn't make any difference with seeding of around 3K records in one seeder.

from laravel-fast-refresh-database.

Tray2 avatar Tray2 commented on May 30, 2024

I think this one can be closed without further a do

from laravel-fast-refresh-database.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.