public function index(CompanyRepository $repository, $section = null)
    {
        if (is_null($section)) {
            $section = 'about';
        }

        $company = $repository->default();

        abort_if(is_null($company->$section), 404);

        return view('about.index', [
            'tab' => $section
        ]);
    }
public function index(CompanyRepository $repository, $section = null)
    {
        if (is_null($section)) {
            $section = 'about';
        }

        $company = $repository->default();

        abort_if(is_null($company->$section), 404);

        return view('about.index', [
            'tab' => $section
        ]);
    }
public function index ( CompanyRepository $ repository , $ section = null ) { if ( is_null ( $ section ) ) { $ section = 'about' ; } $ company = $ repository -> default ( ) ; abort_if ( is_null ( $ company -> $ section ) , 404 ) ; return view ( 'about.index' , [ 'tab' => $ section ] ) ; }
Loads the company about information.

@param  CompanyRepository $repository
@param  string $section

@return void
Loads the company about information .