Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
83 views

public function up(): void { Schema::create('books', function (Blueprint $table) { $table->id(); $table->string('book_name'); $table->string('...
Ahmet Faruk Yaşar's user avatar
0 votes
3 answers
83 views

I would like to cleanup the locally seeded storage images when running php artisan migrate:fresh --seed. I noticed that all the database tables get dropped before the seeders even start. So my method ...
Floris's user avatar
  • 3,225
0 votes
1 answer
260 views

Hie. I have not used seeders in a long time and in my Laravel project I just started I am getting an error. The below is the seeder class. The factory is working with no issues though. <?php ...
Takunda Geraldino Chibanda's user avatar
0 votes
2 answers
70 views

stores table (id, name) store_opening_hours table (id, store_id, day_of_week, opens_at, closes_at) StoreFactory.php file: class StoreFactory extends Factory { public function definition(): array ...
Sourav Malo's user avatar
0 votes
1 answer
89 views

I'm new to Laravel. I've made a seeder file, and there is a for loop in it. I want to set the room_type based on the $i value, but it does not work. This is the seeder file: <?php namespace ...
niloofar's user avatar
  • 2,354