Monday, April 10, 2017

Laravel's created_date, updated_date and Id columns php

I have been confusing about database table created in the laravel framework. It automatically generated ID, created_date, and updated _date columns for me. So, when I want to retrieve a whole table of database, Do i Need to created a new model as the previous created table doesn't have id, created_date and updated_date attributes.

All I am trying to do is pull all data in a particular table and display to user.

Thank you very much in advance and I appreciate it.



via jeff

Advertisement