Skip to content

Pointing to wrong model path when generating DataTable - Laravel 8 #2468

@AjithLalps

Description

@AjithLalps

Summary of problem or feature request

Laravel 8 introduced a new folder Models for the model class. When generating DataTable by php artian datatables:make command, the model namespace is wrong.

Model is pointing to App namespace instead of App\Models namespace.

Code snippet of problem

System details

  • Operating System windows 10
  • PHP Version 7.4
  • Laravel Version 8.x
  • Laravel-Datatables Version 1.5

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions