-
Notifications
You must be signed in to change notification settings - Fork 578
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update contactPage singleton test stub
- Loading branch information
Showing
16 changed files
with
105 additions
and
95 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
37 changes: 37 additions & 0 deletions
37
tests/stubs/singleton/2021_09_30_202102_create_contact_pages_tables.php
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,37 @@ | ||
<?php | ||
|
||
use Illuminate\Database\Migrations\Migration; | ||
use Illuminate\Database\Schema\Blueprint; | ||
use Illuminate\Support\Facades\Schema; | ||
|
||
class CreateContactPagesTables extends Migration | ||
{ | ||
public function up() | ||
{ | ||
Schema::create('contact_pages', function (Blueprint $table) { | ||
createDefaultTableFields($table); | ||
}); | ||
|
||
Schema::create('contact_page_translations', function (Blueprint $table) { | ||
createDefaultTranslationsTableFields($table, 'contact_page'); | ||
$table->string('title', 200)->nullable(); | ||
$table->text('description')->nullable(); | ||
}); | ||
|
||
Schema::create('contact_page_slugs', function (Blueprint $table) { | ||
createDefaultSlugsTableFields($table, 'contact_page'); | ||
}); | ||
|
||
Schema::create('contact_page_revisions', function (Blueprint $table) { | ||
createDefaultRevisionsTableFields($table, 'contact_page'); | ||
}); | ||
} | ||
|
||
public function down() | ||
{ | ||
Schema::dropIfExists('contact_page_revisions'); | ||
Schema::dropIfExists('contact_page_translations'); | ||
Schema::dropIfExists('contact_page_slugs'); | ||
Schema::dropIfExists('contact_pages'); | ||
} | ||
} |
37 changes: 0 additions & 37 deletions
37
tests/stubs/singleton/2021_09_30_202102_create_contactpages_tables.php
This file was deleted.
Oops, something went wrong.
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
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,10 @@ | ||
<?php | ||
|
||
namespace App\Models\Revisions; | ||
|
||
use A17\Twill\Models\Revision; | ||
|
||
class ContactPageRevision extends Revision | ||
{ | ||
protected $table = "contact_page_revisions"; | ||
} |
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,10 @@ | ||
<?php | ||
|
||
namespace App\Models\Slugs; | ||
|
||
use A17\Twill\Models\Model; | ||
|
||
class ContactPageSlug extends Model | ||
{ | ||
protected $table = "contact_page_slugs"; | ||
} |
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,11 @@ | ||
<?php | ||
|
||
namespace App\Models\Translations; | ||
|
||
use A17\Twill\Models\Model; | ||
use App\Models\ContactPage; | ||
|
||
class ContactPageTranslation extends Model | ||
{ | ||
protected $baseModuleModel = ContactPage::class; | ||
} |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
|
||
use Illuminate\Support\Facades\Route; | ||
|
||
Route::singleton('contactpage'); | ||
Route::singleton('contactPage'); |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@extends('twill::layouts.form') | ||
|
||
@section('contentFields') | ||
<div>This is the contactpage form</div> | ||
<div>This is the ContactPage form</div> | ||
@stop |
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<?php | ||
|
||
return [ | ||
'contactpage' => [ | ||
'contactPage' => [ | ||
'title' => 'Contact Page', | ||
'singleton' => true, | ||
], | ||
|