Schleifenobjekt Eigenschaft Laravel

foreach( $project->toArray() as $key => $value )
{
    echo $key;
}
Alive Ape