jeudi 4 mai 2017

Increase the date from database by adding more days and display it in a table laravel 5

I create a table with display details from the enter code heredatabase. The date from the database is displaying but I want to increase this displaying date by adding 3 days it will give me an effective date.

foreach ($data as $key => $priceBookDetail) {
                $dd = array();
                array_push($dd, $i);

                array_push($dd, $priceBookDetail->priceBook->name);             
                array_push($dd, $priceBookDetail->product->category->category_name);
                array_push($dd, $priceBookDetail->product->short_code);
                array_push($dd, $priceBookDetail->product->product_name);
                array_push($dd, $priceBookDetail->effective_date);
                array_push($dd, $priceBookDetail->price);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire