public static function oneByName($name)
	{
		$model = self::all()
			->whereEquals('name', $name)
			->row();

		if (!$model)
		{
			$model = self::blank();
		}

		return $model;
	}
public static function oneByName($name)
	{
		$model = self::all()
			->whereEquals('name', $name)
			->row();

		if (!$model)
		{
			$model = self::blank();
		}

		return $model;
	}
public static function oneByName ( $ name ) { $ model = self :: all ( ) -> whereEquals ( 'name' , $ name ) -> row ( ) ; if ( ! $ model ) { $ model = self :: blank ( ) ; } return $ model ; }
Method to load an asset by it's name.

@param   string  $name
@return  object
Method to load an asset by it s name .