Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel Carbon addMonths()

<?php
  
namespace AppHttpControllers;
  
use IlluminateHttpRequest;
use CarbonCarbon;
  
class SignaturePadController extends Controller
{
    /**
     * Write code on Method
     *
     * @return response()
     */
    public function index()
    {
        $currentDateTime = Carbon::now();
        $newDateTime = Carbon::now()->addMonth();
             
        print_r($currentDateTime);
        print_r($newDateTime);
    }
}
Source by www.itsolutionstuff.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Carbon
ADD COMMENT
Topic
Name
9+1 =