fleets
This commit is contained in:
@@ -25,7 +25,6 @@ class FleetsController extends Controller
|
|||||||
public function displayFleets() {
|
public function displayFleets() {
|
||||||
//$fleets = DB::table('Fleets')->get();
|
//$fleets = DB::table('Fleets')->get();
|
||||||
$fleets = \App\Models\Fleet::all();
|
$fleets = \App\Models\Fleet::all();
|
||||||
dd($fleets);
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$fc = array();
|
$fc = array();
|
||||||
$fleet = array();
|
$fleet = array();
|
||||||
@@ -45,6 +44,8 @@ class FleetsController extends Controller
|
|||||||
$description,
|
$description,
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dd($data);
|
||||||
|
|
||||||
//Return the view with the array of the fleet
|
//Return the view with the array of the fleet
|
||||||
return view('fleets.displayfleets')->with('fleet', $fleet);
|
return view('fleets.displayfleets')->with('fleet', $fleet);
|
||||||
}
|
}
|
||||||
@@ -69,7 +70,7 @@ class FleetsController extends Controller
|
|||||||
//Figure out the hours to add to the fleet before purging it.
|
//Figure out the hours to add to the fleet before purging it.
|
||||||
$endTime = Carbon::now();
|
$endTime = Carbon::now();
|
||||||
$endTime->day++;
|
$endTime->day++;
|
||||||
$endTime->hour = 5;
|
$endTime->hour = 11;
|
||||||
$endTime->minute = 0;
|
$endTime->minute = 0;
|
||||||
$endTime->second = 0;
|
$endTime->second = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user