public function timestamps(): void {
    $this->optional('created_at', Timestamp::class)->readOnly();
    $this->optional('updated_at', Timestamp::class)->readOnly();
  }
public function timestamps(): void {
    $this->optional('created_at', Timestamp::class)->readOnly();
    $this->optional('updated_at', Timestamp::class)->readOnly();
  }
public function timestamps ( ) : void { $ this -> optional ( 'created_at' , Timestamp :: class ) -> readOnly ( ) ; $ this -> optional ( 'updated_at' , Timestamp :: class ) -> readOnly ( ) ; }
Adds `created_at` and `updated_at` timestamps

@return  void
Adds created_at and updated_at timestamps