getTable()); $upload = new SplFileInfo(resource_path('assets/images/burger.jpg')); $imgnewspath = Utils::storeImage($upload, $picture->getTable()); return [ 'title' => $this->faker->text(5), 'text' => $this->faker->paragraph(10, false), 'picture_home' => $imghomepath, 'alt_text_picture_home' => $this->faker->sentence(10), 'picture_news' => $imgnewspath, 'alt_text_picture_news' => $this->faker->sentence(10), 'date_start' => \Illuminate\Support\Facades\Date::now(), 'date_end' => \Illuminate\Support\Facades\Date::now()->addDays(2), 'on_top' => true ]; } }