Modules\Doptor\CompanyInfo\Controllers\CompanyController::show PHP Метод

show() публичный Метод

Display the specified resource.
public show ( integer $id )
$id integer
    public function show($id)
    {
        $company_model = $this->module_namespace . "Models\\Company";
        $company = $company_model::findOrFail($id);
        $title = "Showing Company: {$company->name}";
        $this->layout->title = $title;
        $this->layout->content = View::make("{$this->module_alias}::companies.{$this->type}.show")->with('title', $title)->with('company', $company);
    }