Implement Authentication States, show logout options in auth store and services. Make DB and controllers to make messages grouped by chats. Refactor backend code to use DTO.
16 lines
264 B
PHP
16 lines
264 B
PHP
<?php
|
|
|
|
namespace App\Data;
|
|
|
|
use Carbon\CarbonInterface;
|
|
|
|
class SocialMediaPostResponseDto
|
|
{
|
|
public function __construct(
|
|
public string $id,
|
|
public string $post,
|
|
public string $image,
|
|
public CarbonInterface $createdAt
|
|
) {}
|
|
}
|