Skip to content

Messages(contact us)#3

Open
tamarashehadeh wants to merge 12 commits intoRoduanKD:mainfrom
tamarashehadeh:Messages(contactUs)
Open

Messages(contact us)#3
tamarashehadeh wants to merge 12 commits intoRoduanKD:mainfrom
tamarashehadeh:Messages(contactUs)

Conversation

@tamarashehadeh
Copy link

No description provided.

Copy link
Owner

@RoduanKD RoduanKD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@tamarashehadeh please update the code so I can merge this one!

{
public function index()
{
$messages = Message::all();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use pagination and sort them desc by id

'phone' => 'required|starts_with:9639|digits_between:12,12',
'content' => 'required|string|min:5',
]);
$message = new Message();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Message::create instead


class Message extends Model
{
use HasFactory;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add fillable

$table->string('email');
$table->string('phone');
$table->text('content');
$table->softDeletes();
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please make softDeletes after timestamps

@endforeach
</tbody>
</table>
</div>
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please format the code properly & add pagination links

@tamarashehadeh
Copy link
Author

@RoduanKD
updated the code as asked, any more fixes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants