From 36147f5036ec3ae00cea0436cc33498506799df9 Mon Sep 17 00:00:00 2001 From: Nafies Luthfi Date: Mon, 24 Sep 2018 21:30:55 +0800 Subject: [PATCH] Fix invalid create button route on simple index view --- src/stubs/resources/views/simple/index.stub | 2 +- tests/Generators/Simple/ViewsGeneratorTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stubs/resources/views/simple/index.stub b/src/stubs/resources/views/simple/index.stub index 78ba849..ea71a18 100644 --- a/src/stubs/resources/views/simple/index.stub +++ b/src/stubs/resources/views/simple/index.stub @@ -6,7 +6,7 @@
@can('create', new fullMstr) - {{ __('master.create') }} + {{ __('master.create') }} @endcan

{{ __('master.list') }} {{ __('app.total') }} : {{ $mstrCollections->total() }} {{ __('master.master') }}

diff --git a/tests/Generators/Simple/ViewsGeneratorTest.php b/tests/Generators/Simple/ViewsGeneratorTest.php index e1a0c3f..e8f236f 100644 --- a/tests/Generators/Simple/ViewsGeneratorTest.php +++ b/tests/Generators/Simple/ViewsGeneratorTest.php @@ -22,7 +22,7 @@ class ViewsGeneratorTest extends TestCase

{{ __('{$this->lang_name}.list') }} {{ __('app.total') }} : {{ \${$this->collection_model_var_name}->total() }} {{ __('{$this->lang_name}.{$this->lang_name}') }}