-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor: Seeder, views, and migrations for consistency (#28)
* Refactor: Seeder, views, and migrations for consistency Replaced `PagesTableSeeder` with `PageTableSeeder` and updated related paths. Adjusted view components and layouts for streamlined coding practices and enhanced readability. Refactored migrations to update column naming and removed redundant indexing. * Fix styling * Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 (#27) * Bump dependabot/fetch-metadata from 2.2.0 to 2.3.0 Bumps [dependabot/fetch-metadata](https://github.com/dependabot/fetch-metadata) from 2.2.0 to 2.3.0. - [Release notes](https://github.com/dependabot/fetch-metadata/releases) - [Commits](dependabot/fetch-metadata@v2.2.0...v2.3.0) --- updated-dependencies: - dependency-name: dependabot/fetch-metadata dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Fix styling --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Fix styling * Fix styling * Fix styling --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
ea8d005
commit 44bb4b3
Showing
7 changed files
with
73 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
namespace database\factories; | ||
|
||
use Fuelviews\SabHeroWrapper\Models\Page; | ||
use Illuminate\Database\Eloquent\Factories\Factory; | ||
use Illuminate\Support\Carbon; | ||
|
||
class PageFactory extends Factory | ||
{ | ||
protected $model = Page::class; | ||
|
||
public function definition(): array | ||
{ | ||
return [ | ||
'slug' => $this->faker->slug(), | ||
'title' => $this->faker->word(), | ||
'description' => $this->faker->text(), | ||
'image' => $this->faker->word(), | ||
'created_at' => Carbon::now(), | ||
'updated_at' => Carbon::now(), | ||
'registerMediaConversionsUsingModelInstance' => $this->faker->boolean(), | ||
]; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.