diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 index af33d06..4732763 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /.phpunit.cache /.php-cs-fixer.cache /.phpunit.result.cache -/.phpunit.cache \ No newline at end of file +/.phpunit.cache +composer.lock diff --git a/.php-cs-fixer.php b/.php-cs-fixer.php old mode 100644 new mode 100755 diff --git a/LICENCE b/LICENCE old mode 100644 new mode 100755 diff --git a/phpunit.xml b/phpunit.xml old mode 100644 new mode 100755 diff --git a/stubs/ChartWidget.stub b/stubs/ChartWidget.stub new file mode 100644 index 0000000..2a0a345 --- /dev/null +++ b/stubs/ChartWidget.stub @@ -0,0 +1,17 @@ + + + diff --git a/stubs/RelationManager.stub b/stubs/RelationManager.stub new file mode 100644 index 0000000..477020f --- /dev/null +++ b/stubs/RelationManager.stub @@ -0,0 +1,48 @@ +schema([ + Forms\Components\TextInput::make('{{ recordTitleAttribute }}') + ->required() + ->maxLength(255), + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + Tables\Columns\TextColumn::make('{{ recordTitleAttribute }}'), + ]) + ->filters([ +{{ tableFilters }} + ]) + ->headerActions([ +{{ tableHeaderActions }} + ]) + ->actions([ +{{ tableActions }} + ]) + ->bulkActions([ +{{ tableBulkActions }} + ]); + }{{ eloquentQuery }} +} diff --git a/stubs/Resource.stub b/stubs/Resource.stub new file mode 100644 index 0000000..60ea349 --- /dev/null +++ b/stubs/Resource.stub @@ -0,0 +1,53 @@ +schema([ +{{ formSchema }} + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ +{{ tableColumns }} + ]) + ->filters([ +{{ tableFilters }} + ]) + ->actions([ +{{ tableActions }} + ]) + ->bulkActions([ +{{ tableBulkActions }} + ]); + } +{{ relations }} + public static function getPages(): array + { + return [ +{{ pages }} + ]; + }{{ eloquentQuery }} +} diff --git a/stubs/ResourceEditPage.stub b/stubs/ResourceEditPage.stub new file mode 100644 index 0000000..7da213a --- /dev/null +++ b/stubs/ResourceEditPage.stub @@ -0,0 +1,19 @@ + + + {{-- Widget content --}} + +