Skip to content

View [templates.fields.selectTable] not found when using selectTable field option #1096

Description

@Q8root

I am getting error when using field type selectTable :-

q8root@Ahmads-MacBook-Air organicn % php artisan infyom:api_scaffold User
Specify fields for the model (skip id & timestamp fields, we will add it automatically)
Read docs carefully to specify field inputs)
Enter "exit" to finish

Field: (name db_type html_type options) []:

role_id bigInteger:unsigned:foreign,roles,id selectTable:roles:name,id

Enter validations: []:

exit

Field: (name db_type html_type options) []:

exit

Migration created:
2024_02_04_103127_create_users_table.php

Model created:
User.php

Create Request created:
CreateUserAPIRequest.php

Update Request created:
UpdateUserAPIRequest.php

API Controller created:
UserAPIController.php

users api routes added.

Create Request created:
CreateUserRequest.php

Update Request created:
UpdateUserRequest.php

DataTable created:
UserDataTable.php

Controller created:
UserController.php

Generating Views...
datatables_actions.blade.php created
table.blade.php created
index.blade.php created

InvalidArgumentException

View [templates.fields.selectTable] not found.

at vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137
133▕ }
134▕ }
135▕ }
136▕
➜ 137▕ throw new InvalidArgumentException("View [{$name}] not found.");
138▕ }
139▕
140▕ /**
141▕ * Get an array of possible view files.

i templates.fields.selectTable was not found: Are you sure the view exists and is a .blade.php file?

  +21 vendor frames 

22 artisan:35
Illuminate\Foundation\Console\Kernel::handle(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions