app/Http/Controllers/ProfileCompanyController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        lấy id company từ user
        $company = Session( 'auth' );
        $company = Company::find($company->company->id);
        return view( 'pages.profile-company', [ 'company' => $company ] );
    }
public function index ( ) { $ company = Session ( 'auth' ) ; $ company = Company :: find ( $ company -> company -> id ) ; return view ( 'pages.profile-company' , [ 'company' => $ company ] ) ; }
Display a listing of the resource.
Display a listing of the resource .
// //lấy id company từ user