Edited: vehicle create route renamed from vehicle add
This commit is contained in:
parent
be6b465684
commit
e13edeccfc
@ -1,7 +1,7 @@
|
||||
<link rel="stylesheet" href="/css/vehicles.css">
|
||||
<section class="vehicles">
|
||||
<?php if (empty($this->get('vehicles'))): ?>
|
||||
<p>No vehicles yet. <a href="/vehicles/add">Add your first vehicle</a>.</p>
|
||||
<p>No vehicles yet. <a href="/vehicles/create">Add your first vehicle</a>.</p>
|
||||
<?php else: ?>
|
||||
<div class="vehicle-wrapper">
|
||||
<?php foreach ($this->get('vehicles') as $vehicle): ?>
|
||||
|
@ -44,7 +44,7 @@ $router->add('/dashboard', 'DashboardController@index', ['RequireAuth']);
|
||||
// habits routes
|
||||
$router->group('/vehicles', ['RequireAuth'], function ($router) {
|
||||
$router->add('', 'VehicleController@index');
|
||||
$router->add('/add', 'VehicleController@create');
|
||||
$router->add('/create', 'VehicleController@create');
|
||||
$router->add('/edit/{id}', 'VehicleController@edit');
|
||||
$router->add('/delete/{id}', 'VehicleController@delete');
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user