Resources

Singular resources

Edit one record with no list, for settings and the like.

For settings and the like, return only ManageSingleRecord from getPages().

use Xelqun\Panels\Resources\Pages\ManageSingleRecord;

public static function getPages(): array
{
    return ['index' => ManageSingleRecord::class];
}
A settings page editing one record, with no listA settings page editing one record, with no list

It edits what getSingularRecord() returns, which by default is the first record, or a new one until it's saved.

See it in the demo.