Method: getView
By default, NexoPOS will use the built-in view to render a CRUD form. However, you can change this behavior by using your form implementation.
If you have the method "getView" defined on your crud component, NexoPOS will then use it as a default view for rendering your form. Note that you're responsible for creating everything (dashboard, shaping your form, calling the CRUD API, rendering the fields).
<?php
namespace Modules\YourModule\Settings;
use Illuminate\Support\Facades\View;
use App\Services\SettingsPage;
class YourModuleSettings extends SettingsPage
{
public function __construct()
{
// register your fields here
}
public function getView()
{
return View::make( 'YourModule::crud/custom-form' );
}
}