I have a model TestDirectory in laravel and test-directory table in mysql. After i manually importing a CSV file in to the mysql table via phpmyadmin, calling TestDirectory::all() is not fetching any data. But previously it was working fine.
Any direction please.
2
Answers
Add to your model:
You should try fillable property on model