I am a new Laravel and using Laravel 5.5.

I want to pass value of month and get start and end date of passing month.

Suppose pass 5 (May month) the get value 
Start date: 01-05-2019 
End date: 30-05-2019

I have tried: 

```php
$finalMonth = 5;
$startMonth = Carbon::now()->addMonth($finalMonth)->day(1)->format("Y-m-d");
$endMonth = Carbon::now()->addMonth($finalMonth)->endOfMonth()->format("Y-m-d");

```

But It's given the wrong result because of it adds current month+pass month.
Means 4+5=9 that means sept. 

Please Help