Add necessary use statements, clean up the run-on return statement that was forming...
This commit is contained in:
@@ -9,6 +9,7 @@ use Setting;
|
||||
use Sentry;
|
||||
use DB;
|
||||
use Depreciation;
|
||||
use Manufacturer;
|
||||
use Str;
|
||||
use Validator;
|
||||
use View;
|
||||
@@ -40,7 +41,12 @@ class ModelsController extends AdminController {
|
||||
$depreciation_list = array('' => 'Do Not Depreciate') + Depreciation::lists('name', 'id');
|
||||
$manufacturer_list = array('' => 'N/A') + Manufacturer::lists('name', 'id');
|
||||
$category_list = array('' => '') + DB::table('categories')->lists('name', 'id');
|
||||
return View::make('backend/models/edit')->with('category_list',$category_list)->with('depreciation_list',$depreciation_list)->with('model',new Model);
|
||||
$view = View::make('backend/models/edit')
|
||||
$view->with('category_list',$category_list);
|
||||
$view->with('depreciation_list',$depreciation_list);
|
||||
$view->with('manufacturer_list',$manufacturer_list);
|
||||
$view->with('model',new Model);
|
||||
return $view;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user