Skip to content

Commit

Permalink
Merge branch 'hotfix/8.8.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispelzer committed Feb 12, 2024
2 parents ba2d8ce + ae79702 commit 4dc1052
Show file tree
Hide file tree
Showing 3 changed files with 987 additions and 1,002 deletions.
6 changes: 5 additions & 1 deletion factories/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Contracts\Factories\FactoryContract;
use Faker\Factory;
use Storage;

class Page implements FactoryContract
{
Expand All @@ -20,11 +21,14 @@ public function __construct(Factory $faker)
*/
public function create($limit = 1, $flatten = false, $options = [])
{
$package_json = Storage::disk('base')->get('package.json');
$base_info = json_decode($package_json, true);

for ($i = 1; $i <= $limit; $i++) {
$data[$i] = [
'site' => [
'id' => 2,
'title' => 'Site style guide',
'title' => 'Base - Style guide (v'.$base_info['version'].')',
'short-title' => '',
'keywords' => '',
'subsite-folder' => null,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "base",
"private": true,
"version": "8.8.1",
"version": "8.8.2",
"description": "",
"scripts": {
"dev": "npm run development",
Expand Down

0 comments on commit 4dc1052

Please sign in to comment.