Coder Social home page Coder Social logo

nks / orchid-repeater-field Goto Github PK

View Code? Open in Web Editor NEW
57.0 6.0 41.0 783 KB

Adding support of repeater field to Orchid (https://github.com/orchidsoftware/platform)

License: MIT License

JavaScript 31.24% PHP 49.55% SCSS 5.27% Blade 12.51% Makefile 1.43%
laravel repeater orchid crud fields fieldtype

orchid-repeater-field's People

Contributors

bistory avatar dependabot[bot] avatar imitronov avatar leshkens avatar mavsan avatar nks avatar osbre avatar psalador avatar raidski20 avatar russianprotein avatar stylecibot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

orchid-repeater-field's Issues

Please fix the field

Please fix the field. It is not working anymore and it is very important for every project with orchid...

Please fix it for Laravel 9

It's not working with Laravel 9

BadMethodCallException

Method Orchid\Platform\Dashboard::addPublicDirectory does not exist.

at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:113
109▕ */
110▕ public function __call($method, $parameters)
111▕ {
112▕ if (! static::hasMacro($method)) {
➜ 113▕ throw new BadMethodCallException(sprintf(
114▕ 'Method %s::%s does not exist.', static::class, $method
115▕ ));
116▕ }
117▕

Nested repeater problems

Expected Behavior

I'm using a "questions > answers" nested repeater: the question layout contains a second repeater for its questions:
I'm expecting that dragged questions will bring also the answers inside.

Actual Behavior

When I drag a question, it is correctly moved to the new position, but the answers are visually duplicated (if I have answer a, b, c I will get a, b, c, a, b, c -- but when I save they aren't stored duplicated in the database). In addition of this, the index of the "group" of fields of the answers isn't updated, so when I save they are saved to another question. << this is the major problem because it screws up the data

Steps to Reproduce the Problem

This is the layout of the question repeater, that is creating a nested repeater for the answers:

class QuestionRepeater extends Rows
{
    function fields(): array
    {
        return [
            Input::make('id')->hidden(true),
            Input::make('question')
                ->type('text')
                ->size(255)
                ->maxlength(255)
                ->required()
                ->title('Question text'),
            Repeater::make('answers')
                ->title('Answers')
                ->layout(AnswerRepeater::class),
        ];
    }
}

Specifications

  • ORCHID Platform Version: 13.10.0
  • Laravel Version: 9
  • PHP Version: 8.0.3
  • Database Version: 10.4.18-MariaDB

Radio

Нет возможности указать какой из элементов Radio должен быть checked, т.к. внутри Layer нет доступа к данным $this->query.

Ошибка в 0.0.6

Протестировал - Круто!

Версия 0.0.6 почему-то выдает ошибку и не работает.

Проверял на 0.0.5 всё заработало нормально.

Wrong behaviour on delete all values from repeater field

Current behaviour - Remove all values of Repeater field on page (Like filter group form), click save, take NULL value on backend.
image

Expected behaviour - Remove all values of Repeater field on page (Like filter group form), click save, take EMPTY ARRAY value on backend.

Turbolinks issue

For some reason controller calls twice when we switching between screens.

image

Any suggestions about this?

Failing to render screen

Expected Behavior

Repeater shold be rendered

Actual Behavior

Rendering screen failing

Steps to Reproduce the Problem

  1. Install repeater
  2. Use repeater
  3. Watch failing page

Screenshots (if applicable)

Specifications

image

  • Repeater version: 4.0.1
  • ORCHID Platform Version: 9.21.0
  • Laravel Version: 8.44.0
  • PHP Version: 7.4.11
  • Database Version:

Other Notes

The main issue is that it's trying to do specialchars on array.
The array is ajax_data, which is array by default in \Nakukryskin\OrchidRepeaterField\Fields\Repeater::$attributes

Trace

#0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'htmlspecialchar...', '/var/www/projec...', 118, Array)
#1 /var/www/project/vendor/laravel/framework/src/Illuminate/Support/helpers.php(118): htmlspecialchars(Array, 3, 'UTF-8', true)
#2 /var/www/project/vendor/laravel/framework/src/Illuminate/View/ComponentAttributeBag.php(210): e(Array)
#3 [internal function]: Illuminate\View\ComponentAttributeBag->Illuminate\View\{closure}(Array)
#4 /var/www/project/vendor/laravel/framework/src/Illuminate/View/ComponentAttributeBag.php(208): array_map(Object(Closure), Array)
#5 /var/www/project/vendor/orchid/platform/src/Screen/Field.php(254): Illuminate\View\ComponentAttributeBag->merge(Array)
#6 /var/www/project/vendor/orchid/platform/src/Screen/Field.php(204): Orchid\Screen\Field->getAllowAttributes()
#7 /var/www/project/vendor/orchid/platform/src/Screen/Builder.php(140): Orchid\Screen\Field->render()
#8 /var/www/project/vendor/orchid/platform/src/Screen/Builder.php(98): Orchid\Screen\Builder->render(Object(Nakukryskin\OrchidRepeaterField\Fields\Repeater))
#9 /var/www/project/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(234): Orchid\Screen\Builder->Orchid\Screen\{closure}(Object(Nakukryskin\OrchidRepeaterField\Fields\Repeater), 0)
#10 /var/www/project/vendor/orchid/platform/src/Screen/Builder.php(99): Illuminate\Support\Collection->each(Object(Closure))
#11 /var/www/project/vendor/orchid/platform/src/Screen/Layouts/Rows.php(53): Orchid\Screen\Builder->generateForm()
#12 /var/www/project/vendor/orchid/platform/src/Screen/Layout.php(177): Orchid\Screen\Layouts\Rows->build(Object(Orchid\Screen\Repository))
#13 /var/www/project/vendor/laravel/framework/src/Illuminate/Collections/Traits/EnumeratesValues.php(741): Orchid\Screen\Layout->Orchid\Screen\{closure}(Array, Object(class@anonymous), 1)
#14 /var/www/project/vendor/orchid/platform/src/Screen/Layout.php(180): Illuminate\Support\Collection->reduce(Object(Closure), Array)
#15 /var/www/project/vendor/orchid/platform/src/Screen/Layout.php(114): Orchid\Screen\Layout->buildChild(Array, '0', Object(Orchid\Screen\Repository))
#16 [internal function]: Orchid\Screen\Layout->Orchid\Screen\{closure}(Array, '0')
#17 /var/www/project/vendor/laravel/framework/src/Illuminate/Collections/Collection.php(642): array_map(Object(Closure), Array, Array)
#18 /var/www/project/vendor/orchid/platform/src/Screen/Layout.php(115): Illuminate\Support\Collection->map(Object(Closure))
#19 /var/www/project/vendor/orchid/platform/src/Screen/Layouts/Blank.php(37): Orchid\Screen\Layout->buildAsDeep(Object(Orchid\Screen\Repository))
#20 /var/www/project/vendor/orchid/platform/src/Screen/Screen.php(86): Orchid\Screen\Layouts\Blank->build(Object(Orchid\Screen\Repository))
#21 /var/www/project/vendor/orchid/platform/src/Screen/Screen.php(140): Orchid\Screen\Screen->build()
#22 /var/www/project/vendor/orchid/platform/src/Screen/Screen.php(284): Orchid\Screen\Screen->view(Array)
#23 /var/www/project/vendor/orchid/platform/src/Screen/Screen.php(159): Orchid\Screen\Screen->redirectOnGetMethodCallOrShowView(Array)
#24 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Orchid\Screen\Screen->handle('3')
#25 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(45): Illuminate\Routing\Controller->callAction('handle', Array)
#26 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php(254): Illuminate\Routing\ControllerDispatcher->dispatch(Object(Illuminate\Routing\Route), Object(App\Orchid\Screens\Scheduler\SchedulerEditScreen), 'handle')
#27 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Route.php(197): Illuminate\Routing\Route->runController()
#28 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php(695): Illuminate\Routing\Route->run()
#29 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Routing\Router->Illuminate\Routing\{closure}(Object(Illuminate\Http\Request))
#30 /var/www/project/vendor/tabuna/breadcrumbs/src/BreadcrumbsMiddleware.php(81): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#31 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Tabuna\Breadcrumbs\BreadcrumbsMiddleware->handle(Object(Illuminate\Http\Request), Object(Closure))
#32 /var/www/project/vendor/orchid/platform/src/Platform/Http/Middleware/Access.php(52): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#33 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Orchid\Platform\Http\Middleware\Access->handle(Object(Illuminate\Http\Request), Object(Closure))
#34 /var/www/project/vendor/orchid/platform/src/Platform/Http/Middleware/TurbolinksLocation.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#35 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Orchid\Platform\Http\Middleware\TurbolinksLocation->handle(Object(Illuminate\Http\Request), Object(Closure))
#36 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php(50): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#37 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Routing\Middleware\SubstituteBindings->handle(Object(Illuminate\Http\Request), Object(Closure))
#38 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php(78): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#39 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\VerifyCsrfToken->handle(Object(Illuminate\Http\Request), Object(Closure))
#40 /var/www/project/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php(49): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#41 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\View\Middleware\ShareErrorsFromSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#42 /var/www/project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(121): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#43 /var/www/project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php(64): Illuminate\Session\Middleware\StartSession->handleStatefulRequest(Object(Illuminate\Http\Request), Object(Illuminate\Session\Store), Object(Closure))
#44 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Session\Middleware\StartSession->handle(Object(Illuminate\Http\Request), Object(Closure))
#45 /var/www/project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php(37): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#46 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse->handle(Object(Illuminate\Http\Request), Object(Closure))
#47 /var/www/project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php(67): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#48 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Cookie\Middleware\EncryptCookies->handle(Object(Illuminate\Http\Request), Object(Closure))
#49 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#50 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php(697): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#51 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php(672): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request))
#52 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php(636): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route))
#53 /var/www/project/vendor/laravel/framework/src/Illuminate/Routing/Router.php(625): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request))
#54 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(166): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request))
#55 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(128): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request))
#56 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#57 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ConvertEmptyStringsToNull.php(31): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#58 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull->handle(Object(Illuminate\Http\Request), Object(Closure))
#59 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#60 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TrimStrings.php(40): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure))
#61 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\TrimStrings->handle(Object(Illuminate\Http\Request), Object(Closure))
#62 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#63 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure))
#64 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php(86): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#65 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance->handle(Object(Illuminate\Http\Request), Object(Closure))
#66 /var/www/project/vendor/fruitcake/laravel-cors/src/HandleCors.php(38): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#67 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fruitcake\Cors\HandleCors->handle(Object(Illuminate\Http\Request), Object(Closure))
#68 /var/www/project/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#69 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(167): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure))
#70 /var/www/project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(103): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request))
#71 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(141): Illuminate\Pipeline\Pipeline->then(Object(Closure))
#72 /var/www/project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request))
#73 /var/www/project/public/index.php(52): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request))
#74 {main}

Repeater isn't working

Expected Behavior

When you click on the Add fields/rows button, it should be work.

Actual Behavior

All libraries are connected correctly, js/css are loaded into the code.

The form page is displayed correctly and without errors, but nothing happens when you click on the Add fields/rows button. There are no js errors in the console either.

Screenshots (if applicable)

image

Specifications

  • ORCHID Platform Version: 10.*
  • Laravel Version: 8.*
  • PHP Version: 7.3.29
  • Database Version:

Other Notes

Laravel throws FatalError when trying to use the field in a screen

Expected Behavior

Screen renders Repeater field

Actual Behavior

It throws out an error

Symfony\Component\ErrorHandler\Error\FatalError
Declaration of Nakukryskin\OrchidRepeaterField\Fields\Repeater::make(string $name): Nakukryskin\OrchidRepeaterField\Fields\Repeater must be compatible with Orchid\Screen\Field::make(?string $name = NULL): Orchid\Screen\Field

Steps to Reproduce the Problem

  1. Install the field with composer require nakukryskin/orchid-repeater-field in a fresh laravel install with orchid
  2. Follow the steps in the read me by creating the RepeaterFields class and importing to my screen and using this to render it
use Nakukryskin\OrchidRepeaterField\Fields\Repeater;
Repeater::make('repeater')
      ->title('Repeater')
      ->layout(RepeaterFields::class)
      ->button_label('Add new repeater field')
  1. the application throws the following error
Symfony\Component\ErrorHandler\Error\FatalError
Declaration of Nakukryskin\OrchidRepeaterField\Fields\Repeater::make(string $name): Nakukryskin\OrchidRepeaterField\Fields\Repeater must be compatible with Orchid\Screen\Field::make(?string $name = NULL): Orchid\Screen\Field`

Screenshots (if applicable)

Specifications

  • ORCHID Platform Version:9.4.0
  • Laravel Version:8.9.0
  • PHP Version: 7.3.21
  • Database Version:

Other Notes

I have a problem running the field , it keep throwing that error , am i doing something wrong or is this a bug?
can you please help me getting it to work?

Table view

Sometimes block view taking a lot of space.
This can be fixed with table view instead.
Need to implement design for this and javascript too.

Passing data to repeater

Is it possible to use the repeater field for relationship data? How do I pass data to repeater? For instance:

Schedule.php
class Schedule extends Model { public function tasks() { return $this->hasMany(Task::class, 'schedule_id', 'id'); } }

Task.php
class Task extends Model { ... many methods }

ScheduleEditScreen.php
`
class ScheduleEditScreen extends Screen
{
public function layout(): array
{
return [
Layout::columns([
Layout::rows([
Input::make('schedule.name')
->title('Name')
->placeholder('Title of the job')
->help('Specify a short descriptive title for this job.'),

				TextArea::make('schedule.description')
					->title('Description')
					->rows(3)
					->maxlength(200)
					->placeholder('Brief description for preview'),
					
			])->title('Schedule Info'),
		]),
		Layout::rows([
			Repeater::make('repeater')
				->title('Command')
				->layout(\App\Orchid\Layouts\Repeaters\TaskRepeater::class),
		])->title('Tasks'),
    ];
}

}
`

TaskRepeater.php

`class TaskRepeater extends Rows{

protected $target = 'tasks';
 
 function fields(): array
 {
     return [
	Input::make('command')
			->fromModel(Task::class, 'Command')
			->title('Command'),
		
           ... many more fields
     ];
 }

}`

Add confirmation before delete

If user will click on delete button it will delete immediately.
Need to add confirmation popup and delete it only after confirmation because of users :)

События

Есть возможность добавить события - получение данных, после загрузки страницы (чтобы можно было прицепить события на элементы); добавление/удаление (так-же для обработчика событий) элемента Repeater?
И, так-как repeater может быть несколько разных (гипотетически, кому-то может понадобиться) - желательно при описании в Screen указывать Id нужного Repeater, чтобы в обработчике искать только нужные события.

Method for registering resources

I think installing the config is quite difficult to understand

Config::set('platform.resource.scripts', array_merge(config('platform.resource.scripts', []), [
mix('/js/repeater.js', 'orchid_repeater')
]));
Config::set('platform.resource.stylesheets', array_merge(config('platform.resource.stylesheets', []), [
mix('css/repeater.css', 'orchid_repeater')
]));

You can record this moment explicitly:

class ServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot(Dashboard $dashboard)
    {
        $dashboard->registerResource('stylesheets','/orchid/repeater.css');
        $dashboard->registerResource('scripts','/orchid/repeater.js');
    }
}

Публикация проекта

Привет, просмотрев код, мне не очень понравилось, что каждый пакет должен иметь команду для публикации js,css файлов. По этому, создал регистрацию публичной директории, в которых бы происходил поиск запрашиваемых файлов и их отдача. Думаю, что вы будете заинтересованы в этом

Possible download error

"orchid/platform": "^3.5"

Laravel has an excellent mechanism for registering providers for the application in the packages themselves.

But there is a high probability of a problem that manifests itself when one package depends on another, since the inherited package may be earlier. While this fundamental problem has not been resolved, I recommend that the base loader be recommended as well.

Orchid v14.19.0 instalation error

Error when installing the package

  • Laravel Orchid v14.19.0
  • Laravel version v10.46.0
  • PHP version v8.2.16

run 'composer require nakukryskin/orchid-repeater-field' ends with BadMethodCallException

`Method Orchid\Platform\Dashboard::addPublicDirectory does not exist.

at vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:112
108▕ */
109▕ public function __call($method, $parameters)
110▕ {
111▕ if (! static::hasMacro($method)) {
➜ 112▕ throw new BadMethodCallException(sprintf(
113▕ 'Method %s::%s does not exist.', static::class, $method
114▕ ));
115▕ }
116▕

i Bad Method Call: Did you mean Orchid\Platform\Dashboard::addMenuSubElements() ?`

PHP > 7.2 is not supported

Expected Behavior

Installing the package on a php 8 setup should work.

Actual Behavior

Composer returns an error saying PHP version used by my system is not supported.

Steps to Reproduce the Problem

  1. Use PHP 8.0 and do a composer require nakukryskin/orchid-repeater-field
  2. See it crash
  3. Profit !

Specifications

  • ORCHID Platform Version: Latest
  • Laravel Version: 8
  • PHP Version: 8.0
  • Database Version: N/A

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.