Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Q8root opened this issue Feb 4, 2024 · 0 comments

Comments

@Q8root
Copy link

Q8root commented Feb 4, 2024

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))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant