/var
/www
/milma.com
/app
/Http
/Controllers
/WebsiteController.php
$siteinfo = Siteinformation::first()->translate('locale',$language);
$notice = Noticeboard::find($noticeid);
return view('notices.htmlnotices',compact('siteinfo','productcategories','cattlefeedcategories','federationunits','unions','notice'));
}
//products functions
public function showfederationunit($id)
{
$language = $this->getlanguage();
$productcategories = $this->getproduct_category($language);
$cattlefeedcategories = $this->getcattlefeed_category($language);
$federationunits = $this->getfederation_units($language);
$unions = $this->getunion_list($language);
$siteinfo = Siteinformation::first()->translate('locale',$language);
$thisfederationunit = FederationUnit::find($id)->translate('locale',$language);
$images = $this->getimages($thisfederationunit->image);
return view('newsite.federationunits.perticularunit',compact('siteinfo','productcategories','cattlefeedcategories','federationunits','thisfederationunit','images','unions'));
}
//member unions functions
public function showperticularunion($id)
{
$language = $this->getlanguage();
$productcategories = $this->getproduct_category($language);
$cattlefeedcategories = $this->getcattlefeed_category($language);
$federationunits = $this->getfederation_units($language);
$unions = $this->getunion_list($language);
$siteinfo = Siteinformation::first()->translate('locale',$language);
$thisunion = Union::with('units')->where('id',$id)->first()->translate('locale',$language);
$unionimages = $this->getimages($thisunion->union_images);
return view('unions.perticularunion',compact('siteinfo','productcategories','cattlefeedcategories','federationunits','unions','unionimages','thisunion'));
Arguments
"Call to a member function translate() on null"