<?php namespace Davzie\LaravelBootstrap\Controllers;
use Davzie\LaravelBootstrap\Properties\PropertiesInterface;
use Input, Redirect, Str;
use Illuminate\Support\MessageBag;
class PropertiesController extends ObjectBaseController {
/**
* The place to find the views / URL keys for this controller
* @var string
*/
protected $view_key = 'properties';
/**
* Construct Shit
*/
public function __construct( PropertiesInterface $properties )
{
dd('asdas4');
$this->model = $properties;
parent::__construct();
}
}
but when I call the controller I get
Illuminate \ Container \ BindingResolutionException
Target [Davzie\LaravelBootstrap\Properties\PropertiesInterface] is not instantiable in oka
what did I miss in
ObjectBaseController.php ?
UPDATE: Got it u have to bind those but still interested how to move out from vendor all those codes
Hi,
I just installed and is really promising. Congrats!! But what is the best approach to extend the functionality of backend with own methods?
I was following the wok flow after digging myself in this code
I made inside src/PropertiesController.php than I added to routes
Route::controller( $urlSegment.'/properties', 'Davzie\LaravelBootstrap\Controllers\PropertiesController' );
<?php namespace Davzie\LaravelBootstrap\Controllers; use Davzie\LaravelBootstrap\Properties\PropertiesInterface;
use Input, Redirect, Str; use Illuminate\Support\MessageBag;
class PropertiesController extends ObjectBaseController {
}
but when I call the controller I get
Illuminate \ Container \ BindingResolutionException Target [Davzie\LaravelBootstrap\Properties\PropertiesInterface] is not instantiable in oka
what did I miss in
ObjectBaseController.php ?
UPDATE: Got it u have to bind those but still interested how to move out from vendor all those codes