Get table column names in laravel

Add this function in eloquent model: