mardi 31 décembre 2019

Target [App\Repositories\Setting\SettingRepositoryContract] is not instantiable while building [App\Http\Controllers\SettingsController]

How can i solve Target [App\Repositories\Setting\SettingRepositoryContract] is not instantiable while building [App\Http\Controllers\SettingsController].

Here is my controller

namespace App\Http\Controllers;
use Auth;
use Session;
use App\Http\Requests;
use Illuminate\Http\Request;
use App\Repositories\Setting\SettingRepositoryContract;
class SettingsController extends Controller
{
protected $settings;
public function __construct(
        SettingRepositoryContract $settings
    )
    {
        $this->settings = $settings;

    }

SettingRepositoryContract

namespace App\Repositories\Setting;

interface SettingRepositoryContract
{
    public function getCompanyName();

    public function updateOverall($requestData);

    public function getSetting();
}

NOTE: I am new to laravel and can't understand this error. So please help me if anyone know the answer.

Thank you



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2ZDARzG
via IFTTT

Aucun commentaire:

Enregistrer un commentaire